Convert angle from degrees to radians
R = deg2rad(D)
Convert a 90 degree angle into radians.
R = deg2rad(90)
R = 1.5708
Specify the spherical distance between Munich and Bangalore in degrees and the mean radius of Earth in kilometers. Compute the distance (measured along the Earth's surface) between Munich and Bangalore, in kilometers.
D = 64.7; radEarth = 6371; R = deg2rad(D); dist = radEarth*R
dist = 7.1943e+03
D— Angle in degrees
Angle in degrees, specified as a scalar, vector, matrix, or
multidimensional array. If
D contains complex elements,
the real and imaginary parts separately.
Complex Number Support: Yes
R— Angle in radians
Angle in radians, returned as a scalar, vector, matrix, or multidimensional
R is the same size as
This function fully supports tall arrays. For more information, see Tall Arrays.