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

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

Accepted Answer

the cyclist
the cyclist on 29 Sep 2011
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)

Community Treasure Hunt

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

Start Hunting!