Cody

Solution 2085627

Submitted on 10 Jan 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
filetext = fileread('time_for_five.m'); assert(isempty(strfind(filetext, 'fopen'))); assert(isempty(strfind(filetext, 'assert')));

Error in solution: Line: 1 Column: 27 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

2   Fail
y = time_for_five(5); a=clock; if mod(floor(a(6)),5)==0 y_correct= y else y_correct = NaN; end assert(isequal(y,y_correct))

Error in solution: Line: 1 Column: 27 Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.