MATLAB: Calculation of autocorrelation matrix

autocorrelation

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..

Best Answer

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).