deg2rad - Convert angles from degrees to radians

Syntax

angleOut = deg2rad(angleIn)

angleOut = deg2rad(angleIn) converts angles input in degrees to the equivalent measure in radians.

Remarks

This is both an angle conversion function and a distance conversion function, since arc length can be a measure of distance in either radians or degrees, provided that the radius is known.

Example

Show that there are 2π radians in a full circle:

2*pi - deg2rad(360)

ans =
     0

See Also

degrees2dms, nm2km, sm2deg, rad2deg

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS