Question: Write a user-defined function to calculate the determinant of a matrix - use the MATLAB built-in function det (matrix name), Call the function FirstName_LastName_MyDet' The

Write a user-defined function to calculate the determinant of a matrix - use the MATLAB built-in function det (matrix name), Call the function "FirstName_LastName_MyDet' The function receives a matrix as input, and validates it to ensure the matrix is square. Input: matrix (m times n) Output: 1 times 2 row vector with the following value In your diary file test the following cases: A = rand(5, 5); B = rand(2, 7); Remember: Include a descriptive header before the function. Explain what tasks the function performs. You can use the following template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
