Main Content

radtodeg

(Not recommended) Convert angles from radians to degrees

radtodeg is not recommended. Use the rad2deg function instead. For more information, see Compatibility Considerations.

Description

example

angleInDegrees = radtodeg(angleInRadians) converts angle units from radians to degrees.

Examples

collapse all

Convert pi radians to degrees.

angleInDegrees = radtodeg(pi)
angleInDegrees =

   180

Input Arguments

collapse all

Angle in radians, specified as a scalar, vector, matrix, or N-D array.

Version History

Introduced in R2009b

collapse all

R2015b: radtodeg is not recommended

The radtodeg function is not recommended. Use the rad2deg function instead.

To update your code, replace instances of the radtodeg function with the rad2deg function.

While the radtodeg function accepts input arguments of integer types such as uint8, the rad2deg function accepts only single- and double-precision types. You can convert integer types to single- or double-precision types by using the single or double function.

See Also