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.

plot white noise PSD in matlab?

Status
Not open for further replies.

fanshuo

Full Member level 5
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
noise psd

how to do that without using "psd" command?
Thanks!
 

psd white noise

calculate the power spectral density using mathematical expressions and then plot the array.

Simple
 

power spectral density matlab

there is a scaling factor after the fft to make it a unitary transform
what is that?
 

psd noise

you can see fft of x as
y=fft(x,512);
df=fs/512;
m=fftshift(abs(y));
m=m.^2;
m1=20*log10(m);
p=unwrap(angle(y));
f = -(fs/2)+df:df:(fs/2);
%f=(0:length(y)-1)*fs/length(y);
figure;
plot(f,m1);title('magnitude')
 

Re: psd noise

you can see fft of x as
y=fft(x,512);
df=fs/512;
m=fftshift(abs(y));
m=m.^2;
m1=20*log10(m);
p=unwrap(angle(y));
f = -(fs/2)+df:df:(fs/2);
%f=(0:length(y)-1)*fs/length(y);
figure;
plot(f,m1);title('magnitude')

f = -(fs/2):df:(fs/2)-df; would be better
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top