Products & Services Solutions Academia Support User Community Company

Learn more about Signal Processing Toolbox   

corrmtx - Data matrix for autocorrelation matrix estimation

Syntax

X = corrmtx(x,m)
X = corrmtx(x,m,'method')
[X,R] = corrmtx(...)

Description

X = corrmtx(x,m) returns an (n+m)-by-(m+1) rectangular Toeplitz matrix X, such that X'X is a (biased) estimate of the autocorrelation matrix for the length n data vector x.

X = corrmtx(x,m,'method') computes the matrix X according to the method specified by the string 'method':

[X,R] = corrmtx(...) also returns the (m+1)-by-(m+1) autocorrelation matrix estimate R, calculated as X'*X.

Examples

randn('state',1); n=0:99;   
s=exp(i*pi/2*n)+2*exp(i*pi/4*n)+exp(i*pi/3*n)+randn(1,100);
X=corrmtx(s,12,'mod');

Algorithm

The Toeplitz data matrix computed by corrmtx depends on the method you select. The matrix determined by the autocorrelation (default) method is given by the following matrix.

In this matrix, m is the same as the input argument m to corrmtx, and n is length(x). Variations of this matrix are used to return the output X of corrmtx for each method:

References

[1] Marple, S.L. Digital Spectral Analysis,Englewood Cliffs, NJ, Prentice-Hall, 1987, pp.216-223.

See Also

peig, pmusic, rooteig, rootmusic, xcorr

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS