Cody

Solution 303977

Submitted on 14 Aug 2013 by J.R.! Menzinger
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
%% Ref = 1:20; Ref(2:2:20)=Ref(2:2:20)*-1; user = MyFunc(); assert(isequal(user,Ref))

ans = 1 3 5 7 9 11 13 15 17 19 -2 -4 -6 -8 -10 -12 -14 -16 -18 -20 ans = Columns 1 through 16 1 -2 3 -4 5 -6 7 -8 9 -10 11 -12 13 -14 15 -16 Columns 17 through 20 17 -18 19 -20