DEG2RAD

Purpose:

Converts the input in degrees to radians.

Syntax:

DEG2RAD(x)

x

-

A scalar or series, the degree input.

Returns:

A scalar or series, the result in radians.

Example:

deg2rad(45)

 

returns 0.785398 == π/4 radians.

Example:

W1: {0, 45, 60, 90, 180}

W2: deg2rad(w1)

 

W2 == {0, 0.785398, 1.047198, 1.570796, 3.141593}

W2 == {0, pi/4, pi/3, pi/2, pi}

 

The degree values of W1 converted to radians in W2.

Remarks:

If the input is a series, the vertical units are set to radians.

 

See RAD2DEG to convert radians to degrees.

See Also:

CART2SPH

DEG

RAD2DEG

SETDEGREE

SETRADIAN

SPH2CART