E.g. I have the output of cov(A,B)
, which is a 2×2 matrix.
I want to select the element in position 2,1 of the matrix.
I can do this by blah = cov(A,B)
and then select blah(1,2)
.
This isn't the most efficient way to do it though, and I'd prefer to do it in one line. Is there a way to do that?