question with correlation
Show older comments
I have a array of X x Y size.
I need to do correlation of all the columns as combinations. So need to do correlation of each column with other columns and then once I have all the correlations of all combinations, I want to take a average.
Thanks
Accepted Answer
More Answers (1)
Mate 2u
on 11 May 2012
0 votes
1 Comment
Richard
on 11 May 2012
This can be achieved with the script I provided above.
nonzeros(tril(R,-1))
This will find the lower triangular part of the correlation matrix, or as you say bottom left corner, 'nonzeros' then removes the zeros from the matrix which is created by 'tril' thus genberating a vector of these correlation values. Does this make sense?
Categories
Find more on Correlation and Convolution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!