diffangle(in1,in2)

diffangle calculates the difference (in1-in2) between two sets of angles
32 Downloads
Updated 3 Dec 2017

View License

diffangle calculates the difference (in1-in2) between two sets of angles (in degrees). The difference angle is defined to be the smaller of the two possible angles, with the appropriate sign. The result in the range (-180,180].
When only a single vector argument is supplied, diffangle acts like Matlab's diff to compute [in1(2)-in1(1) in1(3)-in1(1) ...]

Cite As

David Long (2024). diffangle(in1,in2) (https://www.mathworks.com/matlabcentral/fileexchange/65288-diffangle-in1-in2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
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