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

3 visualizaciones (últimos 30 días)
Parvathy
Parvathy el 5 de Mzo. de 2024
Respondida: Star Strider el 5 de Mzo. de 2024
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?

Respuestas (1)

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

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by