Member of the polynomials class.
p = poly(z)
Creates a polynomial with roots represented by an input vector or computes the characteristic polynomial of an input matrix. roots and poly are inverse operations.
| Name | Description |
| z | Specifies a real or complex vector or matrix. If z is a matrix, z must be square. |
| Name | Description |
| p | Returns the 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)
Z1 = roots(P)