FUNCTION REFERENCE

deg2rad

Convert angles from degrees to radians.

Convert angles from degrees to radians.

Syntax

R = deg2rad(D)

Returns (pi/180)*D for a real or complex double array.

Example

deg2rad(180)   % 3.1416

Differences from MATLAB: Character, logical and cell input stop with an error, as MATLAB's sinh does; single input is not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.