Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

Identification of the problem or issue

Answered: 1 week ago