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))

 Accepted Answer

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) ).

More Answers (0)

Categories

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

Tags

Asked:

on 9 Mar 2017

Answered:

on 9 Mar 2017

Community Treasure Hunt

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

Start Hunting!