I am running an FFT in MATLAB of some tidal data. I am using the FFT function:
y = tide_data
Fs = 12*24; % Sampling frequency (number of samples per day)
L = numel(y(:,ii)); % Length of time series
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(y(:,ii),NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2+1);
tt = (1./f);
figure (1)
semilogx(tt,2*abs(Y(1:NFFT/2+1)), 'k');
I successfully pick up most of the major tidal species, most predominantly the major peak sits at 12.42hrs (the M2 tidal component), however I can't seem to be able to pick up the fortnightly component (Mf), even though it is apparent in the time domain. It should have a frequency of about 327hrs, or 14 days. Please see the link to the image below. Does anyone have any suggestions as to why this is?