toRadians

Convert angles to radians

Syntax

[angle1InRadians, angle2InRadians, ...] = toRadians(fromUnits, angle1, angle2, ...)

Description

[angle1InRadians, angle2InRadians, ...] = toRadians(fromUnits, angle1, angle2, ...) converts angle1, angle2, ... to radians from the angle units specified by 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(angleNinRadians) matching size(angleN).

Introduced in R2007b