Calculate only fraction of spectrum with FFT

1 view (last 30 days)
T
T on 11 Apr 2017
I have a signal with 4096 samples. I can calculate the frequency spectrum of this signal with fft. But I am only interested in a small fraction of the spectrum of about 40 specific frequency samples. Because I need to do this many many times, I need to get this as fast as possible. Any way? I tried to manually calculate the spectrum for those 40 samples, but fft is still faster. Thanks

Answers (1)

Darshan Ramakant Bhat
Darshan Ramakant Bhat on 19 Apr 2017
MATLAB uses built-in multi threading for the fft command. So it will over-perform any user defined code for calculating fft points,even if one calculate for smaller number of points. You can also make your custom fft code faster by using parallel computing tool box. Following doc explains about it
Regards,
Darshan Bhat

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!