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 = 3;
assert(isequal(logic(a,b),y_correct))
|
3 | Pass |
a = 2;
b = 2;
y_correct = 6;
assert(isequal(logic(a,b),y_correct))
|
4 | Pass |
a = 3;
b = 1;
assert(isequal(logic(a,b),10))
|
Swap the first and last columns
12410 Solvers
1263 Solvers
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
297 Solvers
2626 Solvers
2032 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!