FFT Function not working with multiple columns
Show older comments
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 Comments
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
on 30 Apr 2021
Raidah Zaman
on 30 Apr 2021
Raidah Zaman
on 30 Apr 2021
Accepted Answer
More Answers (0)
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!