ATLAB Lecture 4 School of Mathematical Sciences Xiamen University http∥gdjpkc.xmu.edu.cr A 312 l10 p a= poly (A) computes the coefficients of the characteristic polynomial ofA 1.0e+003* 0.00100.01200.03802.0310 >>roots(p A) 168781 2.4391+10.6951 2.4391-10.695li We usually use eig to compute the eigenvalues of a matrix directly Lec4-5MATLAB Lecture 4 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn Lec45 A = 4 3 12 17 11 0 1 12 3 >> p_A = poly(A) % computes the coefficients of the characteristic polynomial of A ans = 1.0e+003 * 0.0010 0.0120 0.0380 2.0310 >> r=roots(p_A) r = 16.8781 2.4391 +10.6951i 2.4391 10.6951i We usually use eig to compute the eigenvalues of a matrix directly