Cody

Solution 113051

Submitted on 16 Jul 2012 by Cris Luengo
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
%% y_correct = 1; assert(isequal(your_fcn_name,y_correct))

2   Pass
%% y_correct = 1:100; assert(isequal(your_fcn_name,y_correct))

{Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.} {> In RandStream.RandStream>RandStream.getDefaultStream at 460 In your_fcn_name at 13 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

3   Pass
%% y_correct = rand(100); assert(isequal(your_fcn_name,y_correct))

{Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.} {> In RandStream.RandStream>RandStream.getDefaultStream at 460 In your_fcn_name at 15 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14} {Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.} {> In RandStream.RandStream>RandStream.getDefaultStream at 460 In your_fcn_name at 17 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

4   Pass
%% y_correct = randi(100); assert(isequal(your_fcn_name,y_correct))

{Warning: The RandStream.getDefaultStream static method will be removed in a future release. Use RandStream.getGlobalStream instead.} {> In RandStream.RandStream>RandStream.getDefaultStream at 460 In your_fcn_name at 19 In verifyCode>evaluateCode at 189 In verifyCode at 37 In fevalJSON at 14}

5   Pass
%% y_correct = 'lol'; assert(isequal(your_fcn_name,y_correct))