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 11682778
'
|
Replace NaNs with the number that appears to its left in the row.
2018 Solvers
Sum all integers from 1 to 2^n
8412 Solvers
Back to basics 6 - Column Vector
908 Solvers
Back to basics 11 - Max Integer
678 Solvers
329 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!