Doubt on Covariance matrix of 3 vectors in MATLAB
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
DEVANAND
il 17 Ago 2013
0 voti
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!