FFT Function not working with multiple columns
古いコメントを表示
I am trying to analyze data that I recorded from the Force Sensitive Resistors (FSRs) coded on Arduino through data streamer on excel. I used four FSRs, so there are 4 columns of data over a set of time (1200 rows, 12 seconds). I seperated time from the FSR data so that I can graph the FFT of the FSR data against the time.
But I get very strange graphs when I get the plot back (Attached below)
For each single column of data, I get a bunch of lines instead of one.
Can someone tell me how I can see the frequency of the FSR data?
X = xlsread('botdata.csv');
t = xlsread('botdatatime.csv');
Y = fft(X);
plot(X,Y);
4 件のコメント
you need to form a frequency vector for your x axis, at the moment your x values are the FSR amplitude data which does not make sence. have a look into the fft description hoe to form the frequency vector from your time vector
try to plot (-50:1/12:50-1/12) at the x axis and y axis you use fftshift(abs(fft(X))/length(t)). i hope i remeber that correctly....
Raidah Zaman
2021 年 4 月 30 日
Raidah Zaman
2021 年 4 月 30 日
Raidah Zaman
2021 年 4 月 30 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
