Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 100;
assert(isequal(logic(x),y_correct))
|
2 | Pass |
x = 2;
assert(isequal(logic(x),102))
|
3 | Pass |
x = 4;
assert(isequal(logic(x),103))
|
4 | Pass |
x = 7;
assert(isequal(logic(x),97))
|
First non-zero element in each column
593 Solvers
386 Solvers
Get the length of a given vector
3559 Solvers
249 Solvers
213 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!