Using this sample matlab code:
clear all;
clc
A= ????????;
B= ????????;
AUG=[A B];
for L=1:size(A,2)
%Pivoting starts
for k=L:size(AUG,1)
for m=k+1:size(AUG,1)
if abs(AUG(k,L))temp=AUG(m,:);
AUG(m,:)=?????????;
AUG(k,:)=?????????;
end
end
end
%Pivoting ends
%Gauss Elimination starts
for k=L+1:size(AUG,1)
AUG(k,:)= ????????????????????????????;
AA=AUG(:,1:size(A,2))
BB=AUG(:,size(A,2)+1:end)
end
%Gauss Elimination ends
end
b)Write a MATLAB M-file which performs gauss elimination withoutpivoting step by step and shows the coefficient matrix in eachstep. Using cond (X, P) calculate the condition number of the finalstep coefficient matrix (U matrix).
c) Write a MATLAB M-file which performs gauss elimination withpivoting step by step and shows the coefficient matrix in eachstep.
d)Using cond (X, P) calculate the condition number of the finalstep coefficient matrix (U matrix).