diffangle(in1,in2)

diffangle calculates the difference (in1-in2) between two sets of angles

You are now following this Submission

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 (2026). diffangle(in1,in2) (https://se.mathworks.com/matlabcentral/fileexchange/65288-diffangle-in1-in2), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0