MATLAB: When using Corrcoef

corrcoef

Hi all, When using corrcoef on a matrix. Is there a way to get the mean of all the values on the bottom left triangular side or the top right triangle?
All the best,

Best Answer

I am not sure exactly what you want ...
EDIT but not really different
N = 10;
x = randn(N);
y = corrcoef(x);
z = mean(y(tril(true(N))))