Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x=[1 2 3 6 8 4 9];
n=1;
assert(isequal(rept(x),n))
|
2 | Pass |
x=[2 3 6 2 6 2 2 -2 -7];
n=4;
assert(isequal(rept(x),n))
|
3 | Pass |
x=[2 3 6 2 6 2 2 -2 -7 -7 6 6 6];
n=5;
assert(isequal(rept(x),n))
|
4 | Pass |
x=[8 8 8 6 8 8 8];
n=6;
assert(isequal(rept(x),n))
|
Return the largest number that is adjacent to a zero
3750 Solvers
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
485 Solvers
171 Solvers
1222 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!