Calculation of autocorrelation matrix

조회 수: 46 (최근 30일)
Raviteja
Raviteja 2011년 4월 2일
I want to calculate autocorrelation matrix of a give sequence in matlab.
Which command I have to use ?
>> x=[-2 1 4 2 1 5 4 2 4]
>> z=autocorr(x)
I am getting auto correlated values in a vector form.
I want to calculate Rxx which is a matrix. Suppose if the length of the vector ix N I have to get N X N matrix.
I tried corrmtx( ) but not worked.
Please some one answer my question..

채택된 답변

Matt Fig
Matt Fig 2011년 4월 2일
I don't have the econometrics toolbox, but from this:
it looks like you might be able to build it by using the vector and the TOEPLITZ function (or cousins).

추가 답변 (2개)

Raviteja
Raviteja 2011년 4월 8일
First find autocorrelation by
>>z=autocorr(x)
Then find its toeplitz matrix
>>Rxx=toeplitz(z)
You get autocorrelation matrix Rxx
  댓글 수: 1
Sravan Kumar Dodla
Sravan Kumar Dodla 2012년 3월 12일
Could you just look into it??
Using autocorr is correct here or to use xcorr is correct??
Just try in MATLAB..!!!
Than we can use Toeplitz,...!!

댓글을 달려면 로그인하십시오.


Sravan Kumar Dodla
Sravan Kumar Dodla 2012년 3월 12일
Could you just look into it??
Using autocorr is correct here or to use xcorr is correct?? Just try in MATLAB..!!! Than we can use Toeplitz,...!!

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by