This is a slightly different, and easier, version of these problems:
http://www.mathworks.com/matlabcentral/cody/problems/392-clock-hand-angle-1
http://www.mathworks.com/matlabcentral/cody/problems/1206-angles-of-the-hands-of-a-clock
Please note that the angle between the hour and minute hands also depends on the second hand. You assumed the zero-second in all test cases, which makes your problem a special case of an existing problem: http://www.mathworks.com/matlabcentral/cody/problems/392-clock-hand-angle-1
Find state names that start with the letter N
601 Solvers
Back to basics 19 - character types
225 Solvers
359 Solvers
105 Solvers
Matlab Basics - Absolute Value
360 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!