0% found this document useful (0 votes)
24 views

Advanced Control Lab (Ee-21321) Experiment No: 02: % Continuous Time Transfer Function %

The document describes an experiment to obtain the time response and transfer function of continuous and discrete time systems. It provides the continuous time transfer function G=25/(s^2+10s+25) and corresponding state space representation. Plots show the impulse, step, and ramp responses of the continuous system. The transfer function is then converted to discrete time using a sampling period of 0.01 sec, and the corresponding discrete time state space model and plots of step, impulse, and ramp responses are provided.

Uploaded by

Sudhakar Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Advanced Control Lab (Ee-21321) Experiment No: 02: % Continuous Time Transfer Function %

The document describes an experiment to obtain the time response and transfer function of continuous and discrete time systems. It provides the continuous time transfer function G=25/(s^2+10s+25) and corresponding state space representation. Plots show the impulse, step, and ramp responses of the continuous system. The transfer function is then converted to discrete time using a sampling period of 0.01 sec, and the corresponding discrete time state space model and plots of step, impulse, and ramp responses are provided.

Uploaded by

Sudhakar Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ADVANCED CONTROL LAB (EE-21321)

Experiment No: 02
Objective: To obtain the time response (step, impulse, and ramp) and the transfer
function of continuous and discrete time systems.

Transfer function = 25/(s^2+10s+25)


Find state space representation also. Sampling time is 0.01 sec.

% Continuous Time Transfer Function %


S = tf('s');
num = [25];
den = [1 10 25];
G = tf(num ,den)
[A,B,C,D] = tf2ss(num ,den)
subplot(3,1,1)
impulse(G) %impulse response of system%
grid on
xlabel('time')
ylabel('response')
title('Impulse response of system')
subplot(3,1,2)
step(G) %step response of system%
grid on
xlabel('time')
ylabel('response')
title('Step response of system')
subplot(3,1,3)
step(G/S) %ramp response of system%
xlabel('time')
ylabel('response')
title('Ramp response of system')

RESULTS:

Continuous time transfer function:

G=

25
---------------
s^2 + 10 s + 25

Continuous-time state-space model:

A=

-10 -25
1 0

B=

1
0

C=

0 25

D=

Time responses of continuous time transfer function:


% Discrete Time Transfer Function %
num = [0 0 25];
den = [1 10 25];
G = tf(num ,den); %Continuous time transfer function
H = c2d(G,0.01) %Conversion from continuous time to discrete time
[n,d] = tfdata(H,'v');
[A,B,C,D] = tf2ss(n,d)
subplot(3,1,1)
step(H) %step response of discrete time system
grid on
xlabel('time')
ylabel('responses')
title('Step Response of discrete time TF')
subplot(3,1,2)
impulse(H) %impulse response of discrete time system
grid on
xlabel('time')
ylabel('responses')
title('Impulse Response of discrete time TF')
subplot(3,1,3)
p = tf([1],[1 0]);
m = c2d(p,0.01);
step(H*m) %ramp response of discrete time system
grid on
xlabel('time')
ylabel('responses')
title('Ramp Response of discrete time TF')

RESULTS:

Discrete time transfer function:

H=

0.001209 z + 0.001169
----------------------
z^2 - 1.902 z + 0.9048

Sample time: 0.01 seconds

Discrete time state space model:

A=

1.9025 -0.9048
1.0000 0

B=

1
0

C=

0.0012 0.0012

D=

Time response of discrete time transfer function:


Comments:
 tf(‘s’) : Create a transfer function model for the variable s.
 Step : Plot the step response of system.
 Impulse: Plot the impulse response of system.
 Grid : Display or hide axes grid lines.
 xlabel : Label the x axis of plot.
 Ylabel : Label the y axis of plot.
 Title : Label the title of plot.
 c2d : Convert continuous time tf into discrete time tf.
 tf2ss : Convert transfer function into space state model.
 tf(num, den) : Generate the transfer function from the num and den data.
 [n, d] = tfdata(tf,’v’) : Extract the numerator and denominator from the tf.
 subplot(row, col, pos) : Fix a position for a plot in a multi-plot matrix.

You might also like