Problem 42981. Angle difference between Hour Hand and Minute Hand of clock
Calculate the difference of angles between Hour hand and Minute hand of clock
E.g.
1) At 12:00 Angle Difference = 0 degrees
2) At 14:00 Angle Difference = 60 degrees
3) At 24:00 Angle Difference = 0 degrees
Solution Stats
Problem Comments
-
2 Comments
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
Solution Comments
Show commentsProblem Recent Solvers33
Suggested Problems
-
28242 Solvers
-
Sum all integers from 1 to 2^n
15909 Solvers
-
Get the length of a given vector
11582 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1141 Solvers
-
Create a two dimensional zero matrix
498 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!