Updated 2 Jul 2021
Seth Wagenman (2023). signedAngleTwoVectors (https://www.mathworks.com/matlabcentral/fileexchange/78300-signedangletwovectors), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Had order of arguments to atan2 backwards! Also included unit3DNonZeroVectorByRow function and updated instances of oneCaseFlat to oneVecFlag per suggestion.
Found logic error in sign check; fixed to be row-wise
Cleaned up code a bit and used unit3DNonZeroVectorByRow instead of prior version of that function by same author.
Changed name of file and function to make 3-D explicit.
Got rid of bug when computing dot products of single vectors (rather than matrices of row vectors) as input arguments.
Made code cleaner and variable names more meaningful
debugged check for coplanarity of rotateVec with startVec, endVec
changed last line to calculate beta (returned object) rather than theta