FFT on matrix dataset

How do I calculate fft on the matrix dataset (M1.mat) and plot it?

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 5 Feb 2021
Edited: KALYAN ACHARJYA on 5 Feb 2021
data_mat=load('filename.mat');
fft_result=fft(data_mat)
Please carefully check the size and details of the loaded mat file.
See the Matlab Doc FFT function here
Plot, hope you can do that
If variable are 1 D
Use plot()
2D Variable See the surf function
There are multiple ways of data visualization (plot function), check the dimentions of the plot variables and plot accordingly as per your requirement.

2 Comments

sri ram
sri ram on 5 Feb 2021
Edited: sri ram on 5 Feb 2021
the resultant fft for M1.mat has Naan+Naani as elements. Why is that?

Sign in to comment.

Categories

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

Asked:

on 5 Feb 2021

Commented:

on 11 Feb 2021

Community Treasure Hunt

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

Start Hunting!