Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 10;
y_correct = 18;
assert(isequal(if_then_else(x),y_correct))
y =
18
|
2 | Pass |
x = 14;
y_correct = 18;
assert(isequal(if_then_else(x),y_correct))
y =
18
|
3 | Pass |
x = 11;
y_correct = 18;
assert(isequal(if_then_else(x),y_correct))
y =
18
|
4 | Pass |
x = 12;
y_correct = 18;
assert(isequal(if_then_else(x),y_correct))
y =
18
|
5 | Pass |
x = 13;
y_correct = 18;
assert(isequal(if_then_else(x),y_correct))
y =
18
|
6 | Pass |
x = 9;
y_correct = 7;
assert(isequal(if_then_else(x),y_correct))
y =
7
|
7 | Pass |
x = 15;
y_correct = 7;
assert(isequal(if_then_else(x),y_correct))
y =
7
|
8 | Pass |
x = 0;
y_correct = 7;
assert(isequal(if_then_else(x),y_correct))
y =
7
|
9 | Pass |
x = 100;
y_correct = 7;
assert(isequal(if_then_else(x),y_correct))
y =
7
|
10 | Pass |
x = -2;
y_correct = 7;
assert(isequal(if_then_else(x),y_correct))
y =
7
|
Create a Multiplication table matrix...
281 Solvers
Switch matrix to a column vector
260 Solvers
331 Solvers
Matlab Basics II - Max & Index of Max
188 Solvers
1221 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!