Solution 2039204

Submitted on 29 Nov 2019
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   Pass
filetext = fileread('time_for_five.m'); assert(isempty(strfind(filetext, 'fopen'))); assert(isempty(strfind(filetext, 'assert')));

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 using pause (line 58) The 'pause' command is not supported for this product offering using these arguments: 'n > 2' Error in time_for_five (line 2) pause(5); Error in Test2 (line 1) y = time_for_five(5);

Suggested Problems

More from this Author80