23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2corrcoef<br />

Purpose Correlation coefficients<br />

Syntax S = corrcoef(X)<br />

S = corrcoef(x,y)<br />

corrcoef<br />

Description S = corrcoef(X) returns a matrix of correlation coefficients calculated from<br />

an input matrix whose rows are observations and whose columns are variables.<br />

The matrix S = corrcoef(X) is related to the covariance matrix C = cov(X)<br />

by<br />

Si ( , j)<br />

See Also cov, mean, std<br />

Ci ( , j)<br />

=<br />

--------------------------------------<br />

Cii ( , )C( j, j)<br />

corrcoef(X) is the zeroth lag of the covariance function, that is, the zeroth lag<br />

of xcov(x,'coeff') packed into a square array.<br />

S = corrcoef(x,y) where x and y are column vectors is the same as<br />

corrcoef([x y]).<br />

xcorr, xcov in the Signal Processing Toolbox<br />

2-339

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!