Differences between fft, psd, pwelch etc..
120 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello!
I am trying to plot in the freq domain but I have found a lot of different ways to proceed but I cant see the difference between them and when I plot I get 4 differents plot, so basically I want to know what is the difference when you plot with fft(Y) psd(Y) or pwelch(Y,[],[],[],Fs,'twosided');
0 Kommentare
Akzeptierte Antwort
777
am 8 Mär. 2012
fft is frequency domain plot of signal.whereas psd and pwelch are power spectrum plots ie power/frequency plot
Weitere Antworten (1)
Wayne King
am 8 Mär. 2012
fft(Y) will give you a complex-valued output, which is the discrete Fourier transform of Y.
pwelch(Y, ...., 'twosided') is giving you a Welch's overlapped segment averaging power spectral density estimate where there is some averaging done to reduce the variablity of the spectral estimate. Here you are using the 'twosided' option which gives you the power estimates over an entire period from 0 to the Nyquist. That is wholly unnecessary for a real-valued signal.
psd(Y) is using an obsolete syntax. In this case your signal is divided into segments and each segment is mutiplied by a Hanning window. I think by default here there is no overlap between the segments, which is not the case in pwelch. In pwelch, the segments overlap, but you can control the amount with an input argument.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Spectral Estimation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!