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
|
Remove any row in which a NaN appears
6827 Solvers
How to find the position of an element in a vector without using the find function
2477 Solvers
Magic is simple (for beginners)
2755 Solvers
246 Solvers
338 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!