Table Of Contents

powerofreal

Version:
    Last Modified: January 9, 2017

    Raises input elements to powers that you specify.

    Syntax

    c = powerofreal(a, b)
    Legacy name: realpow

    Inputs

    a

    Elements you want to raise to a power. a is a non-complex scalar or non-complex array of any dimension.

    b

    Powers to which you want to raise the elements in a. b is a non-complex scalar or non-complex array of any dimension of the same size as a.

    Outputs

    c

    Values of a^b. c is a scalar or an array of the same size as a or b.

    Differences between Power and Powerofreal

    Powerofreal is equivalent to power except that powerofreal generates an error if the result is complex.
    A = [3, 5; 2, 4]
    B = 2
    C = powerofreal(A, B)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics