Marine wave data analysis with FFT - MATLAB
Dataset:
https://drive.google.com/file/d/1Sf5d...
Code after loading dataset in z variable:
z1=z(:,1);
z2=z(:,2);
N=length(z2);
y=fft(z2,N);
e=y(1:floor(N/2)+1);
Fs=1/0.5;
f=linspace(0,Fs/2,floor(N/2)+1);
plot(f,abs(e));
No comments