Question: My code is: function my_inverse rand('seed',5542) A=rand(100); B=zeros(100); %%%%%%%%%%%%%%%%%%%%%%%%%% %Find A^-1 and store in B I NEED THIS PART......... %%%%%%%%%%%%%%%%%%%%%%%%%%% I=eye(100); C=abs(A*B-I); disp('max entry in
My code is:
function my_inverse
rand('seed',5542)
A=rand(100);
B=zeros(100);
%%%%%%%%%%%%%%%%%%%%%%%%%%
%Find A^-1 and store in B
I NEED THIS PART.........
%%%%%%%%%%%%%%%%%%%%%%%%%%%
I=eye(100);
C=abs(A*B-I);
disp('max entry in |AB-I|')
max(max(C)
B=inv(A);
C=abs(A*B-I);
disp('max entry in |AB-I|,where B is found using a MATLAB built function')
C=max(max(C);
Could you please help me to complete my code on Matlab to calculate the inverse of a matrix by using these functions
function x=ut_sys(U,d)
function d=ult_sys(L,c)
function c=perm_b(b,p)
and LU=A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
