Are there any code restrictions for Cody solutions?
Steve Eddins
on 18 Oct 2025
Latest activity Reply by Dyuman Joshi
on 31 Oct 2025
Are there any code restrictions for programming Cody solutions? I could not find anything mentioned at https://www.mathworks.com/matlabcentral/content/cody/about.html, other than toolbox functions not being available.
12 Comments
Time DescendingHi Steve. Cody has some restricted functions, but we do not publish the list due to cheating prevention and security concerns.
Hello Steve,
Yes, there are code restrictions for submitting solutions, as many functions were being used to cheat/bypass the system.
Here's a list of the functions that I know about -
{'!','feval', 'eval', 'str2func',' system',' dos',' unix',' perl',' setenv',' path', 'deletefcn', 'rehash', 'assert', ''assignin','builtin', 'evalc', 'evalin', 'inline', 'run’}
These were particularly rampant in the earlier days of cody, atleast before I became active on Cody (2018).
Also, Cody had access to Toolboxes (and Simulink) earlier, however it has been removed/rescinded since quite awhile (I am unsure of the timeline). More info about the same on this thread - https://in.mathworks.com/matlabcentral/discussions/cody/862091-cody-where-s-the-modeling-and-simulation-challenge-group
Sign in to participate