Cody

Solution 1834708

Submitted on 2 Jun 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   Fail
A = [1,3;4,5]; d_correct = -7; assert(isequal(your_fcn_name(A),d_correct))

Error: File: your_fcn_name.m Line: 4 Column: 1 "det" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable. A possible cause of this error is that you forgot to initialize the variable, or you have initialized it implicitly using load or eval. Error in Test1 (line 3) 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))

Error: File: your_fcn_name.m Line: 4 Column: 1 "det" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable. A possible cause of this error is that you forgot to initialize the variable, or you have initialized it implicitly using load or eval. Error in Test2 (line 3) assert(isequal(your_fcn_name(A),d_correct))

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

Error: File: your_fcn_name.m Line: 4 Column: 1 "det" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable. A possible cause of this error is that you forgot to initialize the variable, or you have initialized it implicitly using load or eval. Error in Test3 (line 3) 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))

Error: File: your_fcn_name.m Line: 4 Column: 1 "det" previously appeared to be used as a function or command, conflicting with its use here as the name of a variable. A possible cause of this error is that you forgot to initialize the variable, or you have initialized it implicitly using load or eval. Error in Test4 (line 3) assert(isequal(your_fcn_name(A),d_correct))