Cody

Solution 196264

Submitted on 24 Jan 2013
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, log in.

Test Suite

Test Status Code Input and Output
1   Pass
%% assert(isequal(mystery(1),111))
2   Pass
%% assert(isequal(mystery(2),301))
3   Pass
%% assert(isequal(mystery(3),315))
4   Pass
%% assert(isequal(mystery(4),2301))
5   Pass
%% assert(isequal(mystery(5),2325))
6   Pass
%% assert(isequal(mystery(50),612))
7   Fail
%% x=1:50; m=mystery(x); assert(all(m==round(m))) y=spline(x,m,[12.5 37.5]); assert(all(y==[704.84846527373202 1283.5708406360138]))
Error: Assertion failed.