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

Symbolic-to-numeric polynomial conversion.

Syntax

Description

sym2poly returns a row vector containing the numeric coefficients of a symbolic polynomial. The coefficients are ordered in descending powers of the polynomial's independent variable. In other words, the vector's first entry contains the coefficient of the polynomial's highest term; the second entry, the coefficient of the second highest term; and so on.

Examples

The commands

return

while sym2poly(u^4 - 3 + 5*u^2) returns

and sym2poly(sin(pi/6)*v + exp(1)*v^2) returns

See Also

poly2sym
polyval in the online MATLAB Function Reference



[ Previous | Help Desk | Next ]