fromDegrees

Convert angles from degrees

Syntax

[angle1, angle2, ...] = fromDegrees(toUnits, angle1InDegrees, angle2InDegrees, ...)

Description

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

Was this topic helpful?