www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/CharacteristicPolynomialFromEigenvaluesExample.m
%% Characteristic Polynomial from Eigenvalues % Calculate the eigenvalues of a matrix, |A|. % Copyright 2015 The MathWorks, Inc. A = [1 8 -10; -4 2 4; -5 2 8] %% % e = eig(A) %% % Since the eigenvalues in |e| are the roots of the characteristic % polynomial of |A|, use |poly| to determine the characteristic polynomial % from the values in |e|. p = poly(e)