p = poly(r)
p = poly(A)
| Parameter | Description |
|---|---|
| r | vector: polynomial roots |
| A | matrix: input matrix |
| Parameter | Description |
|---|---|
| p | row vector: polynomial coefficients |
If A is a square matrix, p = poly(A) computes an n+1 element row vector. This result is composed the coefficients of the characteristic polynomial.
If r is a vector, p = poly(r) computes a row vector. This result is composed the coefficients of the polynomial roots of which are the elements of r.
A = [1 2 3;
4 5 6;
7 8 1];
p = poly(A)
| Version | Description |
|---|---|
| 1.0.0 | initial version |