This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
vector1=[1 3 5];
answer1 = [1 2 4];
assert(isequal(mysteryFunction3(vector1),answer1))
|
2 | Pass |
%%
vector2 = [3 5 7 9];
answer2 = [ 3 4 6 8];
assert(isequal(mysteryFunction3(vector2),answer2))
|
3 | Pass |
%%
vector4 = [9];
answer4 = [9]
assert(isequal(mysteryFunction3(vector4),answer4))
answer4 =
9
|
261 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
187 Solvers
104 Solvers
convert matrix to single column
307 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!