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

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
den=[1 3 2]
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?
den[s+2 s+1]

Thank you

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.