Cody

Solution 250358

Submitted on 29 May 2013 by Marco Castelli
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

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