Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to generate white noise with a specific No

Status
Not open for further replies.

fanshuo

Full Member level 5
Joined
Jun 21, 2007
Messages
266
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,298
Location
Netherlands
Activity points
2,746
how to generate white noise with a specific power spectral density in matlab?
has it anything to do with standard deviation?

Thanks!
 

offcourse the noise spectral density depends upon the SD.
 

If I understand your Question correctly - you are asking how to generate a noise signal with a specific noise variance [Standard Deviation = sqrt(variance)].

if 'No' is the required noise variance then the following Matlab code will generate a noise stream with variance of No.

noise_stream = sqrt(No/2) * randn(1,length_sequence);
 

Fanshuo,

Using the randn function, the psd is sigma^2/Fsampling, where sigma is the standard deviation of the samples.
Regards

Z
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top