atand — 2-quadrant and 4-quadrant element-wise inverse tangent, result in degree.
phi=atand(x) phi=atand(y,x)
real scalar, vector or matrix
real scalar, vector or matrix
real scalars, vectors or matrices of the same size
real scalar, vector or matrix
The first form computes the 2-quadrant inverse tangent, which is the
inverse of tand(phi)
. The
phi
elements are in the interval
[-90, 90].
The second form computes the 4-quadrant arctangent (atan2 in
Fortran), this is, it returns the argument (angle) of the complex number
x+i*y
. The range of atand(y,x)
is
[-180,180i].
Both forms yield identical values if
x>0
.