Sometimes you wish to know the spectrum of a time series. plotFFT is a handy function for this purpose.
![plotFFT plotFFT](https://www.alivelearn.net/wp-content/uploads/2011/04/plotfft-300x233.jpg)
You instantly know the power of the signal at each frequency.
Here is an example on how to use this function:
figure; plotFFT(randn(1,1000));
Source code:
plotFFT