Give it a try corrcoef.
In general, you can find such things right away by doing a search in the online help, for example, using a convenient command lookfor:
>> lookfor correlation
corrcoef - Correlation coefficients.
msfuncorr - an M-S-function which performs auto- and cross-
...
>> help corrcoef
CORRCOEF Correlation coefficients.
R=CORRCOEF(X) calculates a matrix R of correlation coefficients for
an array X, in which each row is an observation and each column is a
variable.
for instance
load file.txt
result= CORRCOEF(file);
source
share