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

83 Solutions

34 Solvers

Last Solution submitted on Jul 19, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers34

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!