Clear Filters
Clear Filters

I have a .CSV file having time domain signal data . But I want to plot it in frequency domain. How to do that using MATLAB ?

10 views (last 30 days)
I have a .CSV file having time domain signal data . But I want to plot it in frequency domain. How to do that using MATLAB ?

Answers (1)

Walter Roberson
Walter Roberson on 15 Jul 2020
csvread() the file. Then follow the first example in the fft() documentation, as it shows how to construct the plot labels.
You will need to know what the sampling frequency of the signal is.
  3 Comments
Yogesh Nadarge
Yogesh Nadarge on 28 Jul 2020
Hi,
I am attaching my .csv file which is having time data (in microseconds)in first column & amplitude data in second column. Can anybody help me to plot a frequency spectrum of this data. Your help will be much appreciated as I am new to FFT.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!