When using FFT whats the correlation between linspace and t? In order to get the right frequency the w=linspace​(0,2000,le​ngth(t))

 Réponse acceptée

If 2000 is your sample frequency in Hz then that should be fine for the full double-sided spectrum output of fft. Your plot shows an x range only up to a little over 6 (2*pi at a guess) though despite your question suggesting you use linspace( 0, 2000, length(t) ).

Plus de réponses (0)

Catégories

En savoir plus sur Fourier Analysis and Filtering dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by