Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started