【 MATLAB 】poly 函数介绍
poly
Polynomial with specified roots or characteristic polynomial
Syntax
p = poly(r)
p = poly(A)
Description
p?= poly(r),其中r是向量,返回其根是r元素的多項(xiàng)式的系數(shù)。
由多項(xiàng)式的根求多項(xiàng)式,由特征多項(xiàng)式的根,即特征值求特征多項(xiàng)式。
特征值的特征多項(xiàng)式
Calculate the eigenvalues of a matrix,?A.
計(jì)算矩陣 A 的特征值
A = [1 8 -10; -4 2 4; -5 2 8] A = 3×31 8 -10-4 2 4-5 2 8 e = eig(A) e = 3×1 complex11.6219 + 0.0000i-0.3110 + 2.6704i-0.3110 - 2.6704i由于e中的特征值是A的特征多項(xiàng)式的根,因此使用poly從e中的值確定特征多項(xiàng)式。
p = poly(e) p = 1×41.0000 -11.0000 -0.0000 -84.0000所以特征多項(xiàng)式可以寫為:
x^3? - 11x^2 - 84 = 0;
p?= poly(A), 其中A是n×n矩陣,返回矩陣特征多項(xiàng)式的n + 1個(gè)系數(shù)det(λI-A)。
由矩陣返回特征多項(xiàng)式的系數(shù)。
Characteristic Polynomial of Matrix
Use?poly?to calculate the characteristic polynomial of a matrix,?A.
A = [1 2 3; 4 5 6; 7 8 0] A = 3×31 2 34 5 67 8 0 p = poly(A) p = 1×41.0000 -6.0000 -72.0000 -27.0000Calculate the roots of?p?using?roots. The roots of the characteristic polynomial are the eigenvalues of matrix?A.
r = roots(p) r = 3×112.1229-5.7345-0.3884再由根r來求其多項(xiàng)式y(tǒng),可預(yù)期一樣,y 和 p一致。
?
?
?
?
總結(jié)
以上是生活随笔為你收集整理的【 MATLAB 】poly 函数介绍的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 芯片封装术语
- 下一篇: LDO investigation