rtod

Convert radians to degrees.

Syntax

rtod(expr)

Argument

expr
A valid scalar, vector, or matrix expression.

Example

Templex Expression Results
{rtod(1.5708)} 90.0002
{rtod( {0, 3.14159, 6.28319} )} 0, 180, 360
{rtod( { {0, 1.5708}, {3.1416, 4.7139} } )} {0, 90.0002}, {180, 270.087}

Comments

If expr is a scalar, the result is expr converted into degrees. The result is a scalar.

If expr is a vector, the result is a vector containing each element of expr converted to degrees.

If expr is a matrix, the result is a matrix containing each element of expr converted to degrees.