Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. function [a] = gaussian_elimination(A)
  2. [rows cols] = size(A);
  3. a = zeros(rows,cols);
  4.  
  5. for i=1:rows-1
  6. A(i+1,:) = A(i+1,:)-(A(i+1)/(A(i))*A(i,:));
  7. end
  8.  
  9. a = A
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement