Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 100;
assert(isequal(logic(x),y_correct))
y =
100
|
2 | Pass |
x = 2;
y_correct = 96;
assert(isequal(logic(x),y_correct))
y =
100
|
3 | Pass |
x = 4;
assert(isequal(logic(x),89))
y =
100
|
4 | Pass |
x = 5;
assert(isequal(logic(x),114))
y =
100
|
284 Solvers
413 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
226 Solvers
Is this triangle right-angled?
2396 Solvers
What is Sum Of all elements of Matrix
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!