1 Transfer Function and DC Gain
1 Transfer Function and DC Gain
Assignment 13
Instruction: Find the transfer functions of the following ODEs, G(s) = Y (s)/U (s). Compute
the DC gain, G(0), if it exists. Use the command tf to create a transfer function model (which is
an LTI object) and use the commands step or lsim to solve the ODEs.
G(s) =
DC gain =
2. y + 5y + 6y = 4u + 3u.
DC gain =
G(s) =
3. y + y 2y = u.
G(s) =
DC gain =
...
4. y + y + 4y + 4y = u
+ u.
G(s) =
DC gain =
5. y (4) + 5y (3) + 10y (2) + 10y (1) + 4y = u(3) + 7u(2) + 16u(1) + 10u.
G(s) =
DC gain =
6. y (5) + 9y (4) + 35y (3) + 71y (2) + 68y (1) + 24y = 2u(3) + 5u(2) .
G(s) =
DC gain =
Time-domain responses
For each u(t) in the following problems, you will use a for loop to create six subplots (as a 3 2
array) and plot the responses of y(t) solved from the above six ODEs for 0 t 10. For each plot,
you must include xlabel, ylabel, and a title wisely.
1. Let u(t) be the unit-step function, i.e., u(t) = 1 for t 0. Which of the six responses is
converging a constant ? Explain if the steady-state value of any converging response agrees
with the computed DC gain.
2. Let u(t) be given by
{
u(t) =
0, 0 t < 2
2, t 2.
Discuss how the responses are related with those in part 1). Which of the six responses is
converging a constant ? Does the steady state value agree with the DC gain you computed ?