degtorad - Convert angles from degrees to radians
Syntax
angleInRadians = degtorad(angleInDegrees)
Description
angleInRadians = degtorad(angleInDegrees) converts
angle units from degrees to 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.
Examples
Show that there are 2π radians in a full circle:
2*pi - degtorad(360)
ans =
0
See Also
fromDegrees | fromRadians | radtodeg | toDegrees | toRadians
 | degrees2dms | | demcmap |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit