The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Function File: [a1, a2, …] = fromDegrees (toUnit, deg1, deg2, …)

Convert angles from radians.

Converts any number of input arguments, deg1, deg2, … with angles in degrees, into toUnit which may be "radians" or "degrees".

[a1, a2] = fromDegrees ("radians", 180, [180 360])
⇒
[ 3.1416 ]
⇒
[ 3.1416  6.2832 ]

See also: deg2rad, fromRadians, toDegrees, toRadians, unitsratio.

Package: mapping