Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: get coefficients from a symbolic polynomial
Replies: 6   Last Post: Jan 5, 2013 5:49 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Qiming

Posts: 10
Registered: 12/21/12
get coefficients from a symbolic polynomial
Posted: Jan 5, 2013 10:49 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.