I tried the code below. My max magnitude in the excel file is over 4. I can not see this in my results. any help highly appreciated.
data = xlsread('Lateral_vibration.xlsx','sheet1','A1:A71');
time = 0:1;
signal = data(:,1);
L=length(signal); % Length of signal
Ts = mean(diff(time));
Fs = 1/Ts;
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(signal,NFFT)/L;
frequency = -Fs/2+Fs/NFFT:Fs/NFFT:Fs/2;
Ycent = fftshift(Y);
figure;
subplot(2,2,1);
plot(frequency,abs(Ycent)); % Plot single-sided amplitude spectrum.
grid on
title('Single-Sided Amplitude Spectrum of y(t)');
xlabel('Frequency (Hz)');
ylabel('|Y(f)|');
Y1 = fft(signal,NFFT)*Ts;
Y1 = fftshift(Y);
subplot(2,2,2);
plot(frequency,abs(Y1));
grid on
title('Amplitude Spectrum of y(t)');
xlabel('Frequency (Hz)');
ylabel('|Y1(f)|');
subplot(2,2,3);
plot(frequency,angle(Y));
grid on
title('Phase of y(t)');
xlabel('Frequency (Hz)');
ylabel('Phase of Y(f)');