covariance of a matrix which is not a square matrix
12 次查看(过去 30 天)
显示 更早的评论
we have a matrix of dimension (65536X12) how can we find covariance of such a matrix which is not a square matrix
0 个评论
回答(1 个)
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')
4 个评论
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?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!