It's possible to calculate correlation coeficient (corrcoef) to a matrix (6X4)

It's possible to calculate correlation coeficient (corrcoef) to a matrix non-square, e.g. (6X4)?

 Accepted Answer

Yes.
>> r = corrcoef(rand(6,4))
Each of the 6 rows is an observation of 4 variables, and "r" will be the correlation matrix of those 4 variables.

More Answers (0)

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Asked:

on 29 Sep 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!