Advertisement
Guest User

Untitled

a guest
Jan 21st, 2013
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.64 KB | None | 0 0
  1. >> x = mvnrnd(zeros(1,2),C1,10000);
  2. >> y = mvnrnd(zeros(1,2),C2,10000);
  3. >> chol(cov([x y]))
  4.  
  5. ans =
  6.  
  7.    1.006891868834764   0.503933797681249   0.020078812622287   0.020822623330906
  8.                    0   0.858042430837816  -0.003546103543455   0.000418070006100
  9.                    0                   0   1.009117616854190   0.804374268640588
  10.                    0                   0                   0   0.596874185204538
  11.  
  12. >> chol(cov(x))
  13.  
  14. ans =
  15.  
  16.    1.006891868834764   0.503933797681249
  17.                    0   0.858042430837815
  18.  
  19. >> chol(cov(y))
  20.  
  21. ans =
  22.  
  23.    1.009323584492180   0.804622886594552
  24.                    0   0.596902440778913
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement