Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
poly ExamplesSee Also

Characteristic polynomial of a matrix.

Syntax

Description

If A is a numeric array, poly(A) returns the coefficients of the characteristic polynomial of A. If A is symbolic, poly(A) returns the characteristic polynomial of A in terms of the default variable x. The variable v can be specified in the second input argument.

Note that if A is numeric, poly(sym(A)) approximately equals poly2sym(poly(A)). The approximation is due to roundoff error.

Examples

The statements

return

See Also



[ Previous | Help Desk | Next ]