rad2deg

Syntax

rad2deg(X)

Details

Convert angle units from radians to degrees for each element of X.

Parameters

X is a scalar/vector.

Returns

The data type is DOUBLE, and the data form is the same as X.

Examples

rad2deg(pi);
// output: 180

Related function: deg2rad