Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2; 3 4];
y_correct = 4;
assert(isequal(your_fcn_name(x),y_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)]
ans =
1
|
2 | Pass |
x = [3 7; 4 1];
y_correct = 7;
assert(isequal(your_fcn_name(x),y_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)]
ans =
1
|
Return the largest number that is adjacent to a zero
3749 Solvers
5702 Solvers
254 Solvers
177 Solvers
Find the square of the sum of the digits of a number
118 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!