toDegrees

Convert angles to degrees

Syntax

[angle1InDegrees, angle2InDegrees, ...] = toDegrees(fromUnits,angle1, angle2, ...)

Description

[angle1InDegrees, angle2InDegrees, ...] = toDegrees(fromUnits,angle1, angle2, ...) converts angle1, angle2, ... to degrees from the angle units specified in fromUnits. The value of fromUnits can be either 'degrees' or 'radians' and may be abbreviated. The inputs angle1, angle2, ... and their corresponding outputs are numeric arrays of various sizes, with size(angleNinDegrees) matching size(angleN).

Introduced in R2007b