1)I have been trying to perform FFT using time domain data. The time domain data that I have is in excel format and with data points up to 100000. Can somebody tell me what is wrong with my code as the FFT I am obtaining here doesn't match with the one which i have performed in other softwares. (code attached below)
Code:
data= xlsread('pave_25_time_data.xlsx');
Time=data(:,1);
Acc=data(:,2);
figure(1);
plot(Time,Acc);
L= numel(Time);
Y = fft (Acc);
P2 = abs (Y/L);
P1 = P2(1:L/2+1);
P1(1:end-1) = 2*P1(1:end-1);
f = (0:(L/2))/2;
figure(2);
plot(f,P1);