Cody

Problem 44099. Find my secret function II

Solution 2954725

Submitted on 16 Sep 2020 by Rafael S.T. Vieira
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
x = 23; y_correct = 100; assert(isequal(your_fcn_name(x),y_correct))

2   Pass
x = 21; y_correct =77; assert(isequal(your_fcn_name(x),y_correct))

3   Pass
x = magic(1000); y_correct = 3.755040202300000e+10; assert(isequal(your_fcn_name(x),y_correct))

4   Pass
x = magic(5); y_correct =100; assert(isequal(your_fcn_name(x),y_correct))

5   Pass
x = 1:220; y_correct = 4438; assert(isequal(your_fcn_name(x),y_correct))

Suggested Problems

More from this Author14

Community Treasure Hunt

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

Start Hunting!