Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Correct

8Size
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

Test
Code Input and Output
1
Pass
 
%%
S= evalc('ver');
index = findstr('MATLAB License Number:',S);
startis = index+length('MATLAB License Number:');
licensis = S(startis:startis+7);
y_correct =  strtrim(licensis)
assert(isequal(piracy_or_not,y_correct))
% Prevents cheating 16-Apr-2012
 filetext = fileread('piracy_or_not.m')
assert(isempty(strfind(filetext, '655986')))
y_correct =
655986
filetext =
function ans = piracy_or_not
   license;
   % does cody cody computer has a license number equal to zero ? suspense ...
end
%This code written by profile_id 1063408