Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = 1;
b = 1;
y_correct = 2;
assert(isequal(logic(a,b),y_correct))
|
2 | Pass |
a = 1;
b = 2;
y_correct = 5;
assert(isequal(logic(a,b),y_correct))
|
3 | Pass |
a = 2;
b = 2;
y_correct = 8;
assert(isequal(logic(a,b),y_correct))
|
4 | Pass |
a = 1;
b = 3;
y_correct = 10;
assert(isequal(logic(a,b),y_correct))
|
1726 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Create a cell array out of a struct
508 Solvers
Test Problem; Create a 5x5 array containing all ones
270 Solvers
198 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!