Cody

Solution 758848

Submitted on 12 Oct 2015 by Peng Liu
  • Size: 7
  • 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
%% a=[]; b=[1 2]; c=magic(4); d=a; e=5; assert(isequal(find_it(0),5))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]

2   Pass
%% a=4.1; b=magic(5); c=9; d=0; e=-5; assert(isequal(find_it(0),9))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]

3   Pass
%% a=100; b=[1 2]; c=magic(4); d=1.5; e=0; assert(isequal(find_it(0),100))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]

4   Pass
%% a=-100; b='secret'; c=eye(5); d=[]; e=1; assert(isequal(find_it(0),1))

[Warning: Function isequal has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.]

Suggested Problems