Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert 's' polynomial to array

Status
Not open for further replies.

drey

Electrical
Feb 15, 2005
3
hi everyone

i have another question for you, i am trying to convert an polynomial, in this case just the denominator, which is of the form, 3s^3 + 5.2s^2 + s + 1 to an array which has none of the s terms, i.e [3, 5.2, 1, 1], i have already separated the numerator and denominator, but need to do this conversion for gain/phase plots. It would also be nice to go other way and be able to turn [1, 0] into s.

i have looked at all the commands like tf, tfdata and really thought sys = tf(sys, 'inv') would do it, but no luck. as mine isn't a system but a polynomial.

I hope someone knows how to do this, thanks in advance.

Drew
 
Replies continue below

Recommended for you

Isn't this how matlab stores polynomials anyway (may be in reverse)?

M

--
Dr Michael F Platten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor