Cody

Problem 44093. Determinants

Solution 2031631

Submitted on 22 Nov 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
A = [1,3;4,5]; d_correct = -7; assert(isequal(your_fcn_name(A),d_correct))

2   Fail
A = [6,0,0,5;1,7,2,-5;2,0,0,0;8,3,1,8]; d_correct = 10; assert(isequal(your_fcn_name(A),d_correct))

Assertion failed.

3   Pass
A = [1,0,4;2,3,2;0,5,-2]; d_correct = 24; assert(isequal(your_fcn_name(A),d_correct))

4   Fail
A = [4,0,-7,3,-5;0,0,2,0,0;7,3,-6,4,-8;5,0,5,2,-3;0,0,9,-1,2]; d_correct = 6; assert(isequal(your_fcn_name(A),d_correct))

Assertion failed.

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!