rad2deg

Syntax

rad2deg(X)

Arguments

X is a scalar/vector.

Details

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

Examples

rad2deg(pi);
// output
180

Related function: deg2rad