import control num = 1 den = [1, 1] sys = control.TransferFunction(num, den)
import control z = [0.5, -0.5] p = [-1, -2] k = 2 sys = control.TransferFunction(z, p, k)
import control s = control.TransferFunction.s sys = (s + 1)/(s**2 + s + 1)In this example, we create a transfer function using the Laplace transform equation. We define the variable `s` as `control.TransferFunction.s`, and use it to define the numerator and denominator of the transfer function equation. Overall, `control.xferfcn.TransferFunction` is a useful tool for representing transfer functions in the frequency domain, and it can be used for a variety of applications.