Hello, I need to plot two graphs (Acceleration vs Time and Magnitude vs Frequency) and present both of it. Here is the code that I have done (a-acceleration (Length of signal N=2048), vt=time vector (1.2048s), Fs=32768Hz)
signal = a; time=vt;
% Plot Original signal in Time Domainplot(vt,a);title('Original signal in Time Domain');xlabel('Time [s]');ylabel('Acceleration [m/s^2]');% Plot FFT signalN = pow2(nextpow2(length(signal)));y = fft(signal,N);plot(1:N,abs(y));title('FFT');xlabel('Frequency [Hertz]');ylabel('Magnitude');
Could you help me with that? Thank you in advance!