How to calculate the fourier transform of a signal in form of a time series with given sampling interval?

조회 수: 2(최근 30일)
I have a signal in form of a column matrix say [2 4 5.6 7.8 5 9 6.7 3 3 2 1] and the sampling interval is 5 Hz. How can I compute the amplitude spectra of this signal and plot the same from the matlab prompt? As every time i use the fft command it assumes 1 sample per second. Every example I went through on the internet had the signal in the form of a function of time ( time vector was predefined) but here I can't relate my time series as any function of time.


Community Treasure Hunt

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

Start Hunting!

Translated by