Problem 44880. Angle between two vectors
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
Christian Schröder
on 27 Oct 2022
Your test suite fails to take numerical inaccuracies into account.
Solution Comments
Show commentsProblem Recent Solvers34
Suggested Problems
-
Return the 3n+1 sequence for n
8478 Solvers
-
Sum of first n terms of a harmonic progression
493 Solvers
-
Number of odd and even elements within matrix
159 Solvers
-
Area of an equilateral triangle
6768 Solvers
-
Find out sum and carry of Binary adder
1688 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!