This example shows how to use the FFT function to analyze the variations in sunspot activity over the last 300 years.
www.mathworks.com