FUNCTION REFERENCE

atan2

Four-quadrant inverse tangent in radians.

Four-quadrant inverse tangent in radians.

Syntax

atan2(Y, X)

Returns the angle of the point (X,Y), including the signs of both coordinates. Inputs must have the same size, or one must be scalar. Real numeric and logical inputs are accepted; complex input is rejected.

Example

atan2(1,0)   % 1.5708

Differences from MATLAB: none known.

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