Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!


Leading solution size is 8.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Code Input and Output
fname = 'omphaloskeptic.m';
fid = fopen(fname);
file = textscan(fid,'%c', ...
  'CommentStyle','%', ...
ha = histc(file{1},1:128);
hp = omphaloskeptic;
assert(~any(ismember(33:41,find(ha))),'Used an illegal character');
assert(isequal(ha,hp),'Actual characters did not match prediction');
{Warning: File: omphaloskeptic.m Line: 2 Column: 1
 exceeds the MATLAB maximum name length of 63 characters and will be truncated to
{> In verifyCode>evaluateCode at 189
  In verifyCode at 37
  In fevalJSON at 14}