This example shows how to create a discrete-time transfer function
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.
tf model object.
The sample time is stored in the
G. Access the sample time
using dot notation:
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.