This example shows how to create a discrete-time transfer function model using
Create the transfer function with a sample time of 0.1 s.
num = [1 0]; den = [1 -2 -6]; Ts = 0.1; G = tf(num,den,Ts)
den are the numerator and
denominator polynomial coefficients in descending powers of z.
G is a
tf model object.
The sample time is stored in the
Ts property of
G. Access the sample time
Ts, using dot
frd models in a similar way to
discrete-time transfer functions, by appending a sample time to the input arguments.
For examples, see the reference pages for those commands.