As the title states I have subtracted the mean value and the detrend function has been used. This helped a lot, however I still have a spike just after the 0 no matter how many samples I choose and it gets worse with more samples.
My data is from suspension position for a drag car. I thought maybe the inconsistency of equilibrium position through out the run might have had an effect and tried to take samples as it was trundling off the track after the run, but results were not much different.
What can I do to remedy the near 0hz spike besides what has been done? Can some data simply create poor results? Does data that doesn't consistently center around a constant point cause this?
Code is as follows for one suspension corner:
clear all clc
filename = 'Latest Run.xlsx'; sheet = 1; xlRangeRR = 'B2000:B2070'; %xlRangeLR = 'E3:E53'; %xlRangeRF = 'H3:H53'; %xlRangeLF = 'K3:K53';
Fs=50; %Hz Ts=.02; %per sec %length(xlRange) xRR = xlsread(filename,sheet,xlRangeRR); xRR=xRR-mean(xRR); xRR=detrend(xRR); XRR=fft(xRR); abs(XRR); plot(abs(XRR))
70 samples
1000 samples
Best Answer