Borrar filtros
Borrar filtros

Calculate only fraction of spectrum with FFT

3 visualizaciones (últimos 30 días)
T
T el 11 de Abr. de 2017
Respondida: Darshan Ramakant Bhat el 19 de Abr. de 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

Respuestas (1)

Darshan Ramakant Bhat
Darshan Ramakant Bhat el 19 de Abr. de 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

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by