Qiming
Posts:
10
Registered:
12/21/12


get coefficients from a symbolic polynomial
Posted:
Jan 5, 2013 10:49 AM


Hi all:
I have a question of how to get coefficients from a symbolic polynomial.
Suppose the polynomial is "y=x+2x^2+3x^3", we want the result to be: [0,1,2,3];
Note that the entire polynomial is symbolic, that is, even the coefficients 0, 1, 2, 3 are in symbolic form instead of numbers, so I cannot use 'sym2poly(y)' to get the coefficients.
I think one possible way is to convert the symbolic into strings, but I test some functions, none of them work.
How to do this?
Any help is appreciated.
Qiming

