angledim
Convert angles units
Note
The angledim function has been replaced by four, more
specific, functions: fromRadians,
fromDegrees, toRadians, and
toDegrees. However, angledim will be
maintained for backward compatibility. The functions deg2rad,
rad2deg, and unitsratio provide
additional alternatives.
Syntax
angleOut = angledim(angleIn,from,to)
Description
angleOut = angledim(angleIn,
returns the value of the input angle from,to)angleIn, which is in units
specified by from, in the desired units given by
to. Angle units are 'degrees' for
“decimal” degrees or 'radians' for radians.
Examples
Convert from degrees to radians:
angledim(23.45134,'degrees','radians')
ans =
0.4093
Version History
Introduced before R2006a
See Also
degrees2dms | deg2rad | fromDegrees | fromRadians | toDegrees | toRadians | rad2deg | unitsratio