Cody

Problem 1820. 07 - Common functions and indexing 5

Solution 575430

Submitted on 6 Feb 2015 by Guillaume
  • Size: 8
  • This is the leading solution.
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))

Suggested Problems

More from this Author26

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!