daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top