Hw1 - x(i,1) = x(i,1) - A(i,j)*x(j,1); end x(i,1) =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function x = forwardsubstitute(A,b) n = length(b); for i = 1:n x(i,1) = b(i); for j = 1:i-1
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x(i,1) = x(i,1) - A(i,j)*x(j,1); end x(i,1) = x(i,1)/A(i,i); end return;...
View Full Document

This note was uploaded on 01/31/2012 for the course PHYS 418 taught by Professor Somalwar during the Spring '11 term at Rutgers.

Ask a homework question - tutors are online