If I have some time series data, is there a convenient way to perform a FFT and return the top 5 largest magnitude sine waves in an array (whether it's the data or equations for them)? I will then plot them, and possibly sum a few of them together to see the results.
Ofcourse I can just do:
X = fft(x);
then find the largest 5 magnitude frequencies manually from the returned data, and get the equations myself.
Just wondering if MATLAB has something already like this built in.
Cheers
Best Answer