Doubt on Covariance matrix of 3 vectors in MATLAB
Afficher commentaires plus anciens
Hi all, The covariance matrix of 3 vectors x y and z is defined by
cov_matrix(x,y,z) =[var(x) cov(x,y) cov(x,z); cov(x,y) var(y) cov(y,z); cov(x,z) cov(y,z) var(z) ];
but what I obtain for
cov(A) does not match with the above equation where A = [x;y;z];
Why is ti so? How can I correct this mistake?I am using matlab 2011a.
Réponse acceptée
Plus de réponses (1)
DEVANAND
le 17 Août 2013
0 votes
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!