Guest User

Untitled

a guest
Feb 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. A = [1 -1; -1 5];
  2.  
  3. L = [ 1 0;
  4.  
  5. -1 2]; //Lower Triangular Decomp via choleksy method
  6.  
  7. Lt = [1 -1; 0 2]; //L transpose
  8.  
  9. B = [-1; 9]; //B vector since were solving Ax = B -> L*Lt*x = B
  10.  
  11. Linv = inv(L) //calculating inverse of L
  12.  
  13. B*Linv //Computing multiplication
  14.  
  15. Error using *
  16. Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix.
Add Comment
Please, Sign In to add comment