[TOC]

poly

Polynomial Coefficients

Usage

poly(a)

Examples

Input
r = [3 4 5];
p = poly(r);
x = linspace(2.8,5.5);
plot(x,polyval(p,x))
Output
p =
 1.000  -12.00   47.00  -60.00

Plot is generated.

poly_eg_figure1

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