Autocorrelation from Psd Power spectral density in Matlab

Hi, I've a problem to obtaining the autocorrelation function of a Time series of 50000 samples from the function cpsd or periodogram available in Matlab. for example: % x is the signal minus the mean, then considering only the fluctuation.
T1=1; % seconds finestra=hanning(T1*f_s); % in samples, f_s is a sample frequency. over=T1*f_s/2; % in samples,it is the overlap nfft=T1*f_s;
[Gxx, f]=*cpsd*(x,x, finestra,over,nfft,f_s); % it is the crossspectra
Then to have the correlation, The correlation sequence can be derived from the PSD by use of the inverse discrete-time Fourier transform:
so I did like this:
corr=abs(ifft(Gxx));
but the result it is not correct. How can I obtain the correlation directrly from the Psd?
Thanks in advance

Answers (0)

Asked:

on 20 Jan 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!