Sometimes you wish to know the spectrum of a time series. plotFFT is a handy function for this purpose.
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