Test | Status | 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 license_number = piracy_or_not
license_number = license;
% does cody cody computer has a license number equal to zero ? suspense ...
end
%This code written by profile_id 3344619
|
200 Solvers
13800 Solvers
Get the length of a given vector
1357 Solvers
Remove the two elements next to NaN value
309 Solvers
185 Solvers