DEG2RAD Convert From Degrees To Radians
Section: Mathematical Functions
Usage
Converts the argument from degrees to radians. The syntax for its use isy = deg2rad(x)
where x
is a numeric array. Conversion is done by
simply multiplying x
by pi/180
.
Example
How many radians in a circle:--> deg2rad(360) - 2*pi ans = 0