Cody

Solution 996899

Submitted on 5 Oct 2016 by LY Cao
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x = -11; y_correct = -11; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = [-1 0 2]; y_correct = 2; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x = -ones(10); y_correct = -1; assert(isequal(your_fcn_name(x),y_correct))

4   Pass
x = rand(71,65,78,2); x(5,8,12,1)=100; y_correct = 100; assert(isequal(your_fcn_name(x),y_correct))

5   Pass
x = zeros(1,6,4,22,5,7); y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

6   Pass
x = magic(11); y_correct = 121; assert(isequal(your_fcn_name(x),y_correct))

7   Pass
x = -magic(12); y_correct = -1; assert(isequal(your_fcn_name(x),y_correct))