How to do fft of a csv file to plot amplitude spectrum

13 views (last 30 days)
I have a csv files with 2 columns. 1st column has time and second column has the value (These are the outut values of a VCO that is not constant) . Around 2006 rows are there in total. I want to plot the amplitude spectrum of these values. For that I have to do the FFT of these values. What is the code for doing this?

Answers (1)

Star Strider
Star Strider on 5 Mar 2024
See the documentation for both fft and nufft. One of those should apply to your problem.
Another optioon is the pspectrum function.

Categories

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

Community Treasure Hunt

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

Start Hunting!