Ics Lab Exercise 1
Ics Lab Exercise 1
A linear control system may be presented either by a set of differential equations or by a transfer
function. A transfer function is defined as the ratio of the Laplace transform of output to the
Laplace transform of the input. Transfer functions are defined in MATLAB by storing the
coefficients of the numerator and the denominator in vectors. In this tutorial, the names of the
vectors are generally chosen to be num and den, but any other name could be used. For example,
num = 100;
den = [1 14 100];
Note that all coefficients must be included in the vector, even zero coefficients. To check your
entry you can use the command printsys as shown below:
printsys(num,den);
To find the zeros, poles and gain of a transfer function from the vectors num and den which
contain the coefficients of the numerator and denominator polynomials, type
[z,p,k] = tf2zp(num,den)
The zeros are stored in z, the poles are stored in p, and the gain is stored in k. To find the
numerator and denominator polynomials from z, p, and k, type
[num,den] = zp2tf(z,p,k)
The poles of the system are the roots of the denominator polynomial (the characteristic
polynomial) and zeros are the roots of numerator polynomial. The poles and zeros of the above
transfer function can be found by
poles = roots(den)
zeros = roots(num)
To plot the poles and zeros of any transfer function there is a built in function pzmap in the
MATLAB. Note that the cross symbol in the figure present poles while the circles represents
zeros, which are not shown in this particular plot, because the system has not any zeros.
Exercise#1.1:
S + 1
𝐺(𝑆) =
S3 + 4S 2 + 10
These two transfer functions can be multiplied by using the following MATLAB code:
num1 = [1 0];
den1 = [9 17];
num2 = 9*[1 3];
den2 = [2 9 27];
Exercise#1.2
A. Reduce the following block diagrams into a single block also find poles and zeros and
sketch pole zero diagram.
The closed loop transfer function of the above block diagram is given by
We can obtain this transfer function by using MATLAB functions cloop or feedback.
Exercise#1.3
A. Consider the following block diagram. Find the closed loop transfer function.