Calculate the time of day in days, hours, minutes or seconds passed since the beginning of the day, depending on the unit. The unit is given as a string:
validUnits = {'nanoseconds'; 'microseconds'; 'milliseconds'; ...
'seconds'; 'minutes'; 'hours'; 'days'};
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers29
Suggested Problems
-
Remove all the words that end with "ain"
2712 Solvers
-
Circular Primes (based on Project Euler, problem 35)
655 Solvers
-
Generate a random matrix A of (1,-1)
432 Solvers
-
Matlab Basics II - Determine if an array has a 3rd dimension
168 Solvers
-
1025 Solvers
More from this Author14
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This problem's test suite has been fixed and expanded.
there is still something wrong with the last test case
@Nikolaos, All test cases are working fine. Reference solution and other solutions provided say otherwise to your comment.