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

2 ビュー (過去 30 日間)
Parvathy
Parvathy 2024 年 3 月 5 日
回答済み: Star Strider 2024 年 3 月 5 日
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?

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeFourier Analysis and Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by