Table Of Contents

poly

Version:
    Last Modified: March 15, 2017

    Creates a polynomial with roots represented by an input vector or computes the characteristic polynomial of an input matrix.

    Syntax

    p = poly(z)

    Inputs

    z

    Real or complex array of any dimension. If z is a matrix, z must be square. If z is an array, MathScript first flattens the array before creating a polynomial input.

    Outputs

    p

    Coefficients in descending order of power of the polynomial with roots of z. If z is a matrix, p returns the coefficients in descending order of power of the characteristic polynomial of z. p is a real or complex vector.

    Z = [1, 2, 3, 4];
    P = poly(Z)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics