polyPolynomial Coefficients
poly(a)a should be a vector or a square matrix of numeric values (non-characters).a is a vector, it returns cofficients of the polynomial with roots given by a. The first and the last coefficients correspond to the highest and the zeroth order terms, respectively.a is a square matrix, it returns coefficients of the characteristic polynomial of a. For a should not contain inf nor nan values.a is empty, it returns 1.[3 4 5].r = [3 4 5];
p = poly(r);
x = linspace(2.8,5.5);
plot(x,polyval(p,x))
p =
1.000 -12.00 47.00 -60.00
Plot is generated.

A = [1 2;3 4];
p = poly(A)
p =
1.000 -5.000 -2.000