Problem 381. Angle between two vectors
You have two vectors , determine the angle between these two vectors
For example:
u = [0 0 1]; v = [1 0 0];
The angle in degrees between u and v is 90.
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Aurelien Queffurust
on 11 Jun 2012
I have rescored the problem after adding more robust test suites.
Ashutosh datar
on 8 Jul 2013
only one test case runs, others are not working
Brian Holden
on 12 Jan 2024
I don't understand why the checker is rounding the answers, nor why some implementers are rounding the answers. Maybe it's to avoid roundoff issues, which admittedly are an issue when testing equivalence, but any reasonable solution to the problem should be able to give an answer out to 5 or 6 decimal places.
Solution Comments
Show commentsProblem Recent Solvers776
Suggested Problems
-
3381 Solvers
-
1419 Solvers
-
615 Solvers
-
Find a subset that divides the vector into equal halves
391 Solvers
-
485 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!