Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 specified angle units. 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

Was this topic helpful?