Returns a list of coefficients
L=poly2coef(P,x)
is a sym or a polynomial
is a string representing the main variable of P
is a sym-list representing the coefficient in x of P
The polynomial can be multi-variable.
Syms(['x' 'y']) P=x^4*y^3-2*x^3*y^2+3*x^2-y+1 poly2coef(P,x),poly2coef(P,y)