Extract FFT of every column in frequency domain

4 views (last 30 days)
Hello,
So I have analysed the data and put it into an FFT like this:
A_G_fft = fft(A_G,[],1);
Now I get a complex double of dimensions 250000x151, now, all I want to do is to plot the FFT of for example column 1 in the frequency domain, so I get the magnitude on the y-axis and frequency on the x-axis.
So the files I work with have 250.000 measurement points and 151 different measurements in this case. The variable A_G is a double of size 250000x151 and is the vibration measured through labVIEW and written into csv files.
I tried it in several ways but cannot seem to work it out.
How would you guys do it?
Thanks in advance!

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 1 Mar 2021
Edited: KALYAN ACHARJYA on 1 Mar 2021
A_G_fft = fft(A_G,[],1);
Is that :
y_data=vibration measured through labVIEW ?
for i=1:size(A_G_fft,2)
col_data=A_G_fft(:,i);
plot(col_data,....)
% You have put ^other y variable here which must have same length
hold on;
end
Hope I got the question!
  4 Comments
Robin L
Robin L on 1 Mar 2021
I'm sorry for not being clear. I wanted to plot it using the magnitude in dB and the frequency in Hz. Can I just use abs and phase functions to convert the complex double?
KALYAN ACHARJYA
KALYAN ACHARJYA on 1 Mar 2021
Please refer the link, it may help
Consider a little example with pen and paper, it may be more clear. Note, most of the members may not be from the same subjective domain, hence it is preferable to interpretation in the universal scientific language, which is mathematics.
:)

Sign in to comment.

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!