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
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