Question: create a decomp.m function in MatLab, that outputs LU decomposition of matrix A, it's condition number and its pivot vector, following the pseocode below: Use

create a decomp.m function in MatLab, that outputs LU decomposition of matrix A, it's condition number and its pivot vector, following the pseocode below:

create a decomp.m function in MatLab, that outputs LU decomposition of matrix

Use the result of the decomp.m function to create a solve.m function that solves x from Ax=b for Gauss elimintation using the following pseucode:

A, it's condition number and its pivot vector, following the pseocode below:

procedure Gauss(n, (aij), (L)) integer i, j, k, n; real r, rmax, smax, xmult real array (aij)nxn n real array alloc aimx( real array allocate (S)1m for i= l to n do smax 0 for j = 1 to n do Smax max(smax, laijl) end for end for for k1 ton - 1 do rmax 0 for i = k to n do if (r > rmax) then rmax r end if end for for i k + 1 to n do for j = k +1 to n do end for end for end for deallocate array (si) end procedure Gauss procedure Gauss(n, (aij), (L)) integer i, j, k, n; real r, rmax, smax, xmult real array (aij)nxn n real array alloc aimx( real array allocate (S)1m for i= l to n do smax 0 for j = 1 to n do Smax max(smax, laijl) end for end for for k1 ton - 1 do rmax 0 for i = k to n do if (r > rmax) then rmax r end if end for for i k + 1 to n do for j = k +1 to n do end for end for end for deallocate array (si) end procedure Gauss

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!