[Master Index]
[Index for /tools/hpmatlab/toolbox/matlab/datafun]
corrcoef
(/tools/hpmatlab/toolbox/matlab/datafun/corrcoef.m)
Function Synopsis
xy = corrcoef(x,y)
Help text
CORRCOEF Correlation coefficients.
CORRCOEF(X) is a matrix of correlation coefficients formed
from array X whose each row is an observation, and each
column is a variable.
CORRCOEF(X,Y) is the same as CORRCOEF([X Y]).
If C is the covariance matrix, C = COV(X), then CORRCOEF(X) is
the matrix whose (i,j)'th element is
C(i,j)/SQRT(C(i,i)*C(j,j)).
See also COV, STD.
Cross-Reference Information
This function calls
- cov /tools/hpmatlab/toolbox/matlab/datafun/cov.m
- diag /tools/hpmatlab/toolbox/matlab/elmat/diag.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- sqrt /tools/hpmatlab/toolbox/matlab/elfun/sqrt.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON