Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a=6;
b=12;
y_correct=30
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
30
[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 4)
In solutionTest (line 3)]
|
2 | Pass |
a=7;
b=14;
y_correct=35
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
35
[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 4)
In solutionTest (line 5)]
|
3 | Pass |
a=3;
b=6;
y_correct=15
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
15
[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 4)
In solutionTest (line 7)]
|
4 | Pass |
a=5;
b=40;
y_correct=65
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
65
[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 4)
In solutionTest (line 9)]
|
5 | Pass |
a=5;
b=90;
y_correct=125
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
125
[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 ScoringEngineTestPoint5 (line 4)
In solutionTest (line 11)]
|
6 | Pass |
a=12;
b=54;
y_correct=102
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
102
[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 ScoringEngineTestPoint6 (line 4)
In solutionTest (line 13)]
|
7 | Pass |
a=16;
b=18;
y_correct=58
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
58
[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 ScoringEngineTestPoint7 (line 4)
In solutionTest (line 15)]
|
8 | Pass |
a=16;
b=72;
y_correct=136
assert(isequal(your_fcn_name(a,b),y_correct))
y_correct =
136
[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 ScoringEngineTestPoint8 (line 4)
In solutionTest (line 17)]
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13048 Solvers
1159 Solvers
Test if two numbers have the same digits
187 Solvers
232 Solvers
238 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!