| Mapping Toolbox™ | ![]() |
angleOut = deg2rad(angleIn)
angleOut = deg2rad(angleIn) converts angles input in degrees to the equivalent measure in radians.
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.
Show that there are 2π radians in a full circle:
2*pi - deg2rad(360)
ans =
0degrees2dms, nm2km, sm2deg, rad2deg
![]() | deg2km, deg2nm, deg2sm | degrees2dm | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |