Given 2 pairs of cartesian co-ordinates, determine the angle between the 2 vectors formed by the points and the origin. Angle must be in [0,180] and in degrees.
e.g.
- Input (3 separate inputs)
[0 1;2 0] [1 1;-2 0] [1 1;2 2]
- Output (3 separate outputs):
90 135 0
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers35
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2070 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2584 Solvers
-
548 Solvers
-
Find the largest value in the 3D matrix
1688 Solvers
-
Is this triangle right-angled?
6836 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Your test suite fails to take numerical inaccuracies into account.