Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 10;
y_correct = (0:2:n);
assert(isequal(zeroToNby2(n),y_correct))
|
2 | Pass |
n = 102;
y_correct = (0:2:n);
assert(isequal(zeroToNby2(n),y_correct))
|
3 | Pass |
n = 73;
y_correct = (0:2:n);
assert(isequal(zeroToNby2(n),y_correct))
|
How to find the position of an element in a vector without using the find function
2477 Solvers
Given a window, how many subsets of a vector sum positive
743 Solvers
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
226 Solvers
307 Solvers
Number of Even Elements in Fibonacci Sequence
665 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!