Question: Make the following matlab function. D=inverses(A) It takes the input of an nxn matrixA. First, the function has to determine whether A is invertible (you
Make the following matlab function.
D=inverses(A)
It takes the input of an nxn matrixA.
First, the function has to determine whether A is invertible (you may want to use the function rank to do that). If A is not invertible, the function has to return an empty matrix D=[ ]; and terminates with a message Matrix A is not invertible.
If A is invertible, then the function reduces the matrix [A eye(n)] into the reduced echelon form and returns the matrix D that is the inverse of the matrix A. You can use a MATLAB built-in function rref for this part.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
