error in template
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = rand(1,10);
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
|
2 | Fail |
x = rand(1,100);
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
|
3 | Fail |
x = ['A' 'long' 'time' 'ago' 'in' 'a' 'galaxy' 'far' 'far' 'away'];
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
|
9840 Solvers
Create a cell array out of a struct
508 Solvers
Determine Whether an array is empty
646 Solvers
3072 Solvers
486 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!