You are on page 1of 17

MEC300 - CONTROL ENGINEERING THEORY AND APPLICATIONS

ASSIGNMENT - 3

ISHAN SHAH, AU1940295


SUBMITTED TO : PROF. KEYUR D JOSHI
SUBMITTED ON : L.M.S.

Q-1) :

Below are the calculations for the transfer functions,


(b) Plotting the step and impulse input curves

MATLAB CODE :

Case – 1

syms s

G1=tf(0)

subplot(2,1,1)

step(G1)

subplot(2,1,1)

impulse(G1)

Case – 2

syms s

G2=tf([10],[30,96,173,249,44,20])

subplot(2,1,1)

step(G2)

subplot(2,1,1)
impulse(G2)

Case – 3

syms s

G3=tf([24],[360,549,1363,659,147,24])

subplot(2,1,1)

step(G3)

subplot(2,1,1)

impulse(G3)

OUTPUT :

Case – 1

Case – 2
Case – 3

Q-2:
A) Input is voltage in & output is the voltage across the capacitor.
MATLAB code and output for the step and impulse response:

syms s

G2_1=tf(1,[8,1])

subplot(2,1,1)

step(G2_1)

subplot(2,1,1)

impulse(G2_1)

hold on

grid on
In the above responses, the amplitude is increasing in step response and decreasing in impulse response.
Time constant for the step response is 8 secs and the amplitude reaches to 1 in the time period of approx
40 secs. On the other hand the amplitude reaches 0 in the time period of approx 30secs. This is the first
order system with step and impulse responses. Both step and impulse responses shows positive and
negative exponential curve patterns respectively.

B) Input is the voltage in & output is the voltage across the resistor.

MATLAB code and output for the step and impulse response:

syms s

G2_2=tf([8,0],[8,1])

subplot(2,1,1)

step(G2_2)

subplot(2,1,1)

impulse(G2_2)

hold on

grid on
In the above responses, the amplitude is decreasing in the step response and the amplitude is increasing in
impulse response. Step response coming to 0 in the time period of approx. 40 secs and Impulse response
raising its amplitude to maximum in the time period of approx. 30 secs.

From 2(a) and 2(b) we can observe that the step and impulse response is same by the magnitude but
opposite in the directions. Step response in 2(a) shows increasing amplitude and 2(b) shows decreasing
amplitude. This shows that the first output gives better result in the step response and vice versa for
impulse response.

Q-3) :
A) Calculation of transfer function
B) Plot of poles and zeros for transfer function

MATLAB Code:

syms s

G1 = tf([9],[20 13 4])

[zz1,pp1,kk1]=tf2zp([9],[20 13 4])

pzmap(zz1,pp1)

syms s

G2 = tf([3],[20 13 4])

[zz2,pp2,kk2]=tf2zp([3],[20 13 4])

pzmap(zz2,pp2)

syms s

G3 = tf([3/4],[20 13 4])

[zz3,pp3,kk3]=tf2zp([3/4],[20 13 4])

pzmap(zz3,pp3)
OUTPUT FOR THE MATLAB :

For θ1(s)/T(s)

For θ2(s)/T(s)

For θ3(s)/T(s)
C) Step response and impulse response plots

For θ1(s)/T(s)

G1 = tf([9],[20 13 4])

[z1,p1,k1]=tf2zp([9],[20 13 4])

subplot(2,1,1)

step(G1)

grid on

subplot(2,1,1)

impulse(G1)

grid on

For θ2(s)/T(s)

syms s

G2 = tf([3],[20 13 4])

subplot(2,1,1)

step(G2)

grid on

subplot(2,1,1)
impulse(G2)

grid on

For θ3(s)/T(s)

syms s

G3 = tf([3/4],[20 13 4])

subplot(2,1,1)

step(G3)

grid on

subplot(2,1,1)

impulse(G3)

grid on
Q-4 ) :
A) Calculation for transfer function :
Poles and zeros for the above transfer function.

MATLAB code:

syms s

G = tf([2],[21 38 0])

[zz,pp,kk]=tf2zp([2],[21 38 0])

pzmap(zz,pp)

Output:

zz =

0×1 empty double column vector


pp = 2×1

-1.8095

kk = 0.0952

B) : Step response and impulse response.

MATLAB Code:

syms s

G = tf([2],[21 38 0])

subplot(2,1,1)

step(G)

grid on

subplot(2,1,1)

impulse(G)

grid on
As the poles are on the real axis so the step response is not sinusoidal. The response is a slope. It
will be the continuous time transfer function whose slope is constant throughout. If one of the
poles would have been at an imaginary axis then we would have got the sinusoidal graph. Here
we can get the exponential graph or a linear slope graph as there are no poles at imaginary axis.

You might also like