The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]
Nasser Abbasi

Posts: 6,677
Registered: 2/7/05
Re: get coefficients from a symbolic polynomial
Posted: Jan 5, 2013 3:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/5/2013 9:49 AM, Qiming wrote:
> 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];

EDU>> sym2poly(sym('3*x^3 + 2*x^2 + x'))

3 2 1 0


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.