Effacer les filtres
Effacer les filtres

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 vues (au cours des 30 derniers jours)
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 ?

Réponses (1)

Walter Roberson
Walter Roberson le 15 Juil 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 commentaires
Walter Roberson
Walter Roberson le 27 Juil 2020
https://www.mathworks.com/help/matlab/ref/fft.html#buuutyt-7
Yogesh Nadarge
Yogesh Nadarge le 28 Juil 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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by