Question: Create a MATLAB function in the following format Out DetOrInv(A, ind) The output of this function is the determinant or the inverse of matrix
Create a MATLAB function in the following format Out DetOrInv(A, ind) The output of this function is the determinant or the inverse of matrix A depending on the notification given, i.e. when ind=-1 the function returns the determinant of A when ind==2, the function returns the inverse of A. Validate your function using the determinant and inverse MATLAB built-in functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
