Question: Algorithm 3 . 1 . 6 ( Gaussian Elimination ) Given an n n matrix A and n - vector b , the following algorithm

Algorithm 3.1.6(Gaussian Elimination) Given an nn matrix A and n-vector b, the following algorithm reduces the system of linear equations Ax=b to an equivalent upper triangular system. A and b are overwritten with the coefficients and right-hand side, respectively, of the reduced system.
for j=1,2,dots,n-1 do
for i=j+1,j+2,dots,n do
mij=aijajj
for k=j+1,j+2,dots,n do
aik=aik-mijajk
end for
bi=bi-mijbj
end for
end for
Exploration 3.1.7 Write a MATLAB function
[A,b]=gausselim?(A,b)
that implements Algorithm 3.1.6.
 Algorithm 3.1.6(Gaussian Elimination) Given an nn matrix A and n-vector b,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!