Main Content
compan
Companion matrix
Syntax
A = compan(u)
Description
A = compan(u)
returns the
corresponding companion matrix whose first row is -u(2:n)/u(1)
,
where u
is a vector of polynomial coefficients.
The eigenvalues of compan(u)
are the roots of the
polynomial.
Examples
Extended Capabilities
Version History
Introduced before R2006a