An easy-to-use file that plots the power spectral density of a vector
Bill Higley (2020). FFT Plot (https://www.mathworks.com/matlabcentral/fileexchange/1249-fft-plot), MATLAB Central File Exchange. Retrieved .
How to download the file?
Could you please send me the m file? Thank you!
My Email is Laserw9@yahoo.com.cn
A waste of time!
Poor - PSD wrong! Just look at fft in matlab help and all is explained better.
You should not publish such scripts, this
is less than a q&d hack. Besides poor programming style it is simply incorrect.
b = length(a)/2
Sorry, this will fail for odd number of elements. Besides that, the PSD is not simply the square of abs(fft), see here
useful for freshman
good and usefull for education for students
I recomment you add window function before perform fft.
It will be nice to provide some explaination for the code. Thank you!
Inspired: Discrete Fourier transform Plot