Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1;
assert(isequal(logic(x),y_correct))
|
2 | Pass |
x = 2;
y_correct = 2;
assert(isequal(logic(x),y_correct))
y =
2
|
3 | Pass |
x = 3;
y_correct = 3;
assert(isequal(logic(x),y_correct))
|
4 | Pass |
x = 6;
y_correct = 18;
assert(isequal(logic(x),y_correct))
y =
18
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13048 Solvers
190 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Find out sum of prime number till given number
125 Solvers
289 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!