covariance of a matrix which is not a square matrix

조회 수: 12 (최근 30일)
Anuradha Kumari
Anuradha Kumari 2011년 4월 4일
we have a matrix of dimension (65536X12) how can we find covariance of such a matrix which is not a square matrix

답변 (1개)

Andrew Newell
Andrew Newell 2011년 4월 4일
As was true of your previous post, your question is not clear. Do you have 65536 measurements each of 12 variables, or the reverse? If the former, then
cov(M)
(where M is your matrix) will give you a 12 x 12 covariance matrix for the variables. If the latter,
cov(M')
will give you a 65536 x 65536 matrix. Again, I recommend reading this discussion of covariance.
  댓글 수: 4
Andrew Newell
Andrew Newell 2011년 4월 5일
I don't suppose it's a coincidence that 65536 = 256^2. Are you trying to correlate each pixel with each other pixel?
Andrew Newell
Andrew Newell 2011년 4월 5일
Maybe I should also ask - why are you trying to do this?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by