Table Of Contents

sqrtofreal

Version:
    Last Modified: January 9, 2017

    Computes the square roots of the positive input elements.

    Syntax

    c = sqrtofreal(a)
    Legacy name: realsqrt

    Inputs

    a

    Scalar or array of any dimension. The elements of a must be non-negative floating-point numbers.

    Outputs

    c

    Square roots of the elements in a. c is an array of the same size as a.

    Differences between Sqrt and Sqrtofreal

    Sqrtofreal is equivalent to sqrt for positive real numbers but generates an error for all other input elements.
    A = [1:1:5]
    C = sqrtofreal(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics