Functions | Content |
---|---|
awgn(m,n,power) | Create white noise |
sgolayfilt(x,order,framelen) | Savizky-Golay filter using cubic (3 order) 49 points |
fft(X,n) | Fourier transform |
ifourier(F,transVar) | Inverse Fourier transform |
power=Y.*conj(Y) | Power spectrum |
auto_y=real(ifft(power)); | Autocorrelation is defined as the product of the shifted amount |
zeroCross=auto_y(1:end-1).*auto_y(2:end) < 0; | Get the zero cross point |
SNR = snr(y); | Calculate the signal S/N |