r = roots(p)
| Parameter | Description |
|---|---|
| p | vector: polynomial coefficients |
| Parameter | Description |
|---|---|
| r | roots |
r = roots(c) finds the roots of the polynomial c. r is a column vector.
This function uses the companion matrix of the polynomial to find the roots.
p = [1 0 0 0 -1];
r = roots(p)
| Version | Description |
|---|---|
| 1.0.0 | initial version |