Cody

Solution 475115

Submitted on 19 Jul 2014 by rifat
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
%% tic dog=@()pause(100/1000); drowsy=wakeup(dog) drowsy_correct = 1 toc assert(drowsy==drowsy_correct) assert(toc>1/10)

a = 1405754044068893 t = 0.1129 ans = 1 drowsy = 1 drowsy_correct = 1 Elapsed time is 0.113924 seconds.

2   Pass
%% tic dog=@()pause(10/1000); drowsy=wakeup(dog) drowsy_correct = 0 toc assert(drowsy==drowsy_correct) assert(toc<1)

a = 1405754044185005 t = 0.0150 ans = 0 drowsy = 0 drowsy_correct = 0 Elapsed time is 0.015383 seconds.