poly - MathWorks
https://www.mathworks.com/help/matlab/ref/poly.htmlBut both poly and roots use eig, which is based on similarity transformations. The classical approach, which characterizes eigenvalues as roots of the characteristic polynomial, is actually reversed. If A is an n -by- n matrix, poly(A) produces the coefficients p(1) through p(n+1) , …