HAHAHAHA
nice
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = rand(1,10);
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
|
2 | Pass |
x = rand(1,100);
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
|
3 | Pass |
x = ['A' 'long' 'time' 'ago' 'in' 'a' 'galaxy' 'far' 'far' 'away'];
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
|
536 Solvers
Omit columns averages from a matrix
527 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
Convert a Cell Array into an Array
430 Solvers
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!