atan2(Matrix, Matrix) Function

Top 

Description

Computes the four-quadrant inverse tangent of (y/x) and returns values in the closed interval [-pi,pi].

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

 

Function Signature

atan2(

Matrix Y,


Matrix X)

 

 

Arguments

Y


Description:

The numerator in an element-by-element inverse tangent calculation.

 

 

X


Description:

The denominator in an element-by-element inverse tangent calculation.

 

 

 

Return Value

Type:

Matrix of number

Units:

rad

 

 

A matrix containing the inverse tangent of (Y[i,j]/X[i,j]).

 

Syntax

myMatrix1 = atan2(myMatrix2, myMatrix3);

 

 

See also

atan2