Hi Tiago, You can definitely use a periodogram-based test to detect whether a periodicity is present or not.
Fisher's Kappa is not coded up per se in MATLAB, but it is easy enough.
Fs = 1000;
t = 0:1/Fs:1-1/Fs;
x = cos(2*pi*100*t)+randn(size(t));
[Pxx,Fxx] = periodogram(x,[],length(x),Fs);
Y = max(Pxx);
Fkappa = Y./mean(Pxx(2:end-1))
The critical values for Fisher's Kappa are documented many places.
You can also use the Kolmogorov-Smirnov (equivalent to Bartlett's test), which compares a normalized cumulative sum of the periodogram ordinates against the cumulative distribution of a uniform [0,1] random variable.
F = cumsum(Pxx)./sum(Pxx);
Best Answer