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 =
'Operat'
filetext =
'function ans = piracy_or_not
'Operat';
end
%This code written by profile_id 11954238
'
|
"Low : High - Low : High - Turn around " -- Create a subindices vector
263 Solvers
378 Solvers
Return elements unique to either input
477 Solvers
152 Solvers
166 Solvers