Cody

Problem 1776. Singularity v5 (with apologies to the true hack masters)

Solution 738312

Submitted on 17 Sep 2015 by Peng Liu
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   Fail
%% x=1/; % oops y=2/; % double oops assert(isequal(not_my_function(x),y)); %% x=1/; % oops y=2/; % double oops assert(isequal(my_function(x),y)); %% forbidden = '(freepass)'; assert(isempty(regexp(evalc('type my_function'),forbidden)));

Error: Expression or statement is incomplete or incorrect.

Suggested Problems

More from this Author80

Community Treasure Hunt

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

Start Hunting!