Get the angle between N-D vectors (2D, 3D, etc.)

Returns the angle between vectors of any dimensions.
138 Downloads
Updated 4 May 2017

View License

Get the angle in radians between two sets of vectors of any dimensions (2D, 3D, 4D, etc.). The angles range from 0 to pi.
Please let me know if anything needs correction or ways to improve this.

Cite As

Audrey Cheong (2024). Get the angle between N-D vectors (2D, 3D, etc.) (https://www.mathworks.com/matlabcentral/fileexchange/62778-get-the-angle-between-n-d-vectors-2d-3d-etc), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Update description.
Change description.