Table Of Contents

companion

Version:
    Last Modified: March 15, 2017

    Returns the companion matrix to a polynomial.

    Syntax

    c = companion(a)
    Legacy name: compan

    Inputs

    a

    Coefficients of a polynomial in descending order of power. The first element in a is the leading coefficient of the polynomial, which is 1 for a monic polynomial. Therefore, an input vector of size n produces a companion matrix of size (n-1)-by-(n-1). a is a vector.

    Outputs

    c

    Companion matrix of a. The size of c equals the order of a.

    A = [1, 2, 3, 4]
    C = companion(A)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics