Cody

Solution 789169

Submitted on 6 Dec 2015
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   Fail
%% assert(isequal(times2(1),2));

Error: <a href="matlab: opentoline('/users/mss.system.Idlaca/times2.m',7,14)">File: times2.m Line: 7 Column: 14 </a>Function with duplicate name "times2" cannot be defined.

2   Fail
%% assert(isequal(times2(11),22));

Error: <a href="matlab: opentoline('/users/mss.system.Idlaca/times2.m',7,14)">File: times2.m Line: 7 Column: 14 </a>Function with duplicate name "times2" cannot be defined.

3   Fail
%% assert(isequal(times2(-3),-6));

Error: <a href="matlab: opentoline('/users/mss.system.Idlaca/times2.m',7,14)">File: times2.m Line: 7 Column: 14 </a>Function with duplicate name "times2" cannot be defined.

4   Fail
%% assert(isequal(times2(29),58));

Error: <a href="matlab: opentoline('/users/mss.system.Idlaca/times2.m',7,14)">File: times2.m Line: 7 Column: 14 </a>Function with duplicate name "times2" cannot be defined.

Suggested Problems

More from this Author95