This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
A = [1,3;4,5];
d_correct = -7;
assert(isequal(your_fcn_name(A),d_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint1 (line 3)
In solutionTest (line 3)]
|
2 | Pass |
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))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint2 (line 3)
In solutionTest (line 5)]
|
3 | Pass |
A = [1,0,4;2,3,2;0,5,-2];
d_correct = 24;
assert(isequal(your_fcn_name(A),d_correct))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint3 (line 3)
In solutionTest (line 7)]
|
4 | Pass |
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))
[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]
[> In unix (line 32)
In your_fcn_name (line 2)
In ScoringEngineTestPoint4 (line 3)
In solutionTest (line 9)]
|
Find the sum of all the numbers of the input vector
25702 Solvers
Given a 4x4 matrix, swap the two middle columns
302 Solvers
264 Solvers
204 Solvers
348 Solvers