Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 0;
assert(isequal(oddXeven(x),y_correct))
a =
0
b =
1
y =
0
|
2 | Pass |
x = [1 2];
y_correct = 1;
assert(isequal(oddXeven(x),y_correct))
a =
1
b =
1
y =
1
|
3 | Pass |
x = [1 2 3];
y_correct = 2;
assert(isequal(oddXeven(x),y_correct))
a =
1
b =
2
y =
2
|
4 | Pass |
x = [1 2 3 4];
y_correct = 4;
assert(isequal(oddXeven(x),y_correct))
a =
2
b =
2
y =
4
|
5 | Pass |
x = [1 2 4];
y_correct = 2;
assert(isequal(oddXeven(x),y_correct))
a =
2
b =
1
y =
2
|
927 Solvers
Find the largest value in the 3D matrix
1056 Solvers
Replace multiples of 5 with NaN
358 Solvers
Append two matrix as shown below example
182 Solvers
125 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!