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!

constants frrom tf

Status
Not open for further replies.

jueves

Industrial
Joined
Apr 10, 2010
Messages
1
Location
SK
i have a transfer function for example like this
a=tf([1],[1 2])

i make a discrete fcn
b=c2d(a,0.1)

the answer is
x
-------
z-y

and now i need to put constants "x" and "y" into variables (for example "c" and "d") and use them in M-file

thanks for help
 
[num,den] = tfdata(b,'v') returns the coefficient vectors of the transfer function numerator and denominator.


xnuke
"Live and act within the limit of your knowledge and keep expanding it to the limit of your life." Ayn Rand, Atlas Shrugged.
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top