Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Difference between two angles

`delta = angdiff(alpha,beta)`

`delta = angdiff(alpha)`

returns
the angular difference between adjacent elements of `delta`

= angdiff(`alpha`

)`alpha`

along
the first dimension whose size does not equal 1. If `alpha`

is
a vector of length *n*, the first entry is subtracted
from the second, the second from the third, etc. The output, `delta`

,
is a vector of length *n-1*. If `alpha`

is
an *m*-by-*n* matrix with *m* greater
than 1, the output, `delta`

, will be a matrix of
size *m-1*-by-*n*.