Problem 44518. Good Morning :)

Solution 2209985

Submitted on 14 Apr 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
x = 1; goodMorning(x); assert(hour(datetime('now'))>=5 && hour(datetime('now'))<=10)

Array indices must be positive integers or logical values. Error in goodMorning (line 7) disp(['Current hour is ' num2str(hour(datetime('now'))) '. You have to wait about ' num2str(hoursTill(hour(datetime('now')))) ' hours to start to solve this problem!']) Error in Test1 (line 2) goodMorning(x);