Table Of Contents

atan2

Version:
    Last Modified: January 9, 2017

    Computes the arctangent of y/x.

    Syntax

    c = atan2(z)
    c = atan2(y, x)

    Inputs

    z

    Real or complex scalar or array of any dimension. atan2(z) is equivalent to atan2(real(z), imag(z)).

    y

    Real or complex scalar or array of any dimension.

    x

    Real or complex scalar or array of any dimension.

    Outputs

    c

    Arctangent, in radians, of the elements in x and y. c is a scalar or an array of the same size as x and y.

    atan2 versus atan

    The atan2 function can compute the arctangent for angles in any of the four quadrants of the x-y plane, whereas the atan function computes the arctangent in only two quadrants.

    C = atan2(3, 4)
    C = atan2(3+4i)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics