Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Feb 15, 2005
Messages
3
Location
GB
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
 
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

Back
Top