| MATLAB Function Reference | ![]() |
Syntax
A=compan(u)
Description
A = compan(u)
回傳伴隨矩陣,第一列為 -u(2:n)/u(1),u 是多項式係數所形成的向量。compan(u) 的特徵值是多項式的根。
Examples
u = [1 0 -7 6]
A = compan(u)
A =
0 7 -6
1 0 0
0 1 0
eig(compan(u))
ans =
-3.0000
2.0000
1.0000
See Also
| comet3 | compass | ![]() |