Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


ben
Posts:
140
Registered:
6/23/09


Easy question tf function
Posted:
Nov 14, 2011 9:33 AM


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



