DSPRelated.com
Forums

PSD of white noise generated by wgn function

Started by iams...@yahoo.com February 5, 2009
Hi, all,

I would like to generate a white noise of which the PSD is 1( flat over all frequency domain). I used wgn function to get it:
w=wgn(1,10000,1,'linear');
By setting p=1 and power type as linear, does it mean that this white gaussian noise has power=1?

Then I did simple experiment to check its PSD. I used periodogram function without any window:
[p,ww]=periodogram(w);
figure; plot(ww,p);
But the plot was totally noisy instead of any flat looking. Shouldn't the PSD of a white noise be flat in theory?

Could you guys check if I made mistake? And can you figure a way to generate white noise whose PSD is 1?

Any suggestion will be appreciated.

Steve