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: Easy question tf function
Replies: 2   Last Post: Nov 14, 2011 10:51 AM

Advanced Search

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

Posts: 140
Registered: 6/23/09
Easy question tf function
Posted: Nov 14, 2011 9:33 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I can make this
num=[10]
den=[1 3 2]
g=tf(num,den)
which gives 10 / (s^2+3s+2)

but i want to give denominator as (s+2)(s+1)
not as [1 3 2]

to make it i use
syms s
expand ((s+2)*(s+1))

then i take the coefficients of s and write them to denominator manually.
can i make it automatically without reading the results of expand?
Like:
num=[10]
den[s+2 s+1]
tf(num,den)

Thank you



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.