Question: Submit your m-file and a diary that shows how you tested the code. Create an m-file mydet.m to compute the determinant of a square matrix

 Submit your m-file and a diary that shows how you tested

Submit your m-file and a diary that shows how you tested the code. Create an m-file mydet.m to compute the determinant of a square matrix using recursion. The function should take as input a matrix A and return its determinant d. Test your code on the following matrix and use det (.) to check your answer. B = [-7 4 -2 -8 6 8 7 2 3 -1 6 -6 6 0 -7 -6 2 -9 2 0 -9 6 7 5 0] Computing the determinant using recursion: The determinant of an n times n square matrix A can be calculated in the following way: det (A) = a_11C_11 + a_12C_12 + .... + a_1nC_1n where C_1j = (-1)^1+j det(M_1j) and the (n - 1) times (n - 1) submatrix M_1j of A throws out row 1 and column j

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!