Skip to content
Prev 78218 / 398503 Next

convering upper triangular matrix into vector

Hi

I have two symmetrical distance matrices and want to compute the correlation
coefficient between them (after turning them into vectors). 

Is there a way of selecting only the upper triangular part of each matrix, then
convert this into a vector so I can compute the correlation?

Many Thanks
Eleni Rapsomaniki