Professional Documents
Culture Documents
SECTION: A
CMS ID: 345975
LAB NO 09
TITLE:
To find the time response of control system using the MATLAB.
OBJECTIVES:
To learn how to find the step and impulse time response of first order and second
order system.
To learn how to find characteristics of time response i.e. rise time, peak time, settling
time, percentage overshoot using MATLAB.
To characterize the undamped, critically damped, and over-damped response of
second order
SOFTWARE USED:SYSTEM.
1. MATLAB.
THEORETICAL BACKGROUND:
INTRODUCTION TO MATLAB:
MATLAB is a high-performance language for technical computing. It integrates
computation, visualization, and programming in an easy-to-use environment where
problems and solutions are expressed in familiar mathematical notation. The name
MATLAB stands for matrix laboratory. MATLAB was originally written to provide easy
access to matrix.
CONTROL SYSTEM:
A control system manages, commands, directs, or regulates the behavior of other devices
or systems using control loops.
STEP INPUT:
A step input signal has an initial value of 0 and transitions to a specified step size value
after a specified step time.
IMPULSE INPUT:
An impulse input is a very high pulse applied to a system over a very short time (i.e., it is
not maintained). That is, the magnitude of the input approaches infinity while the time
approaches zero.
NAME: AHMAD HASSAN
SECTION: A
CMS ID: 345975
RISE TIME:
Rise time as the time it takes to get from 10% to 90% of steady-state value (of a step
response).
PEAK TIME:
Peak time is simply the time required by response to reach its first peak i.e. the peak of
first cycle of oscillation, or first overshoot.
NAME: AHMAD HASSAN
SECTION: A
CMS ID: 345975
SETTING TIME:
Settling time is the time required for an output to reach and remain within a given error
band following some input stimulus.
PERCENTAGE OVERSHOOT:
The overshoot is the maximum amount by which the response overshoots the steady-
state value and is thus the amplitude of the first peak.
PARACTICE EXERCISES:
EXERCISE NO 01:
Find the step and impulse time response of following second order systems. Show the
characteristics of time response i-e peak time, rise time etc.
NAME: AHMAD HASSAN
SECTION: A
CMS ID: 345975
PART A
CODE: OUTPUT:
clc
T_1 = tf([0 0 7],[1 5 10])
% ploting step input
subplot(1,2,1)
step(T_1);
legend
% ploting impulse input
subplot(1,2,2)
impulse(T_1);
legend
PART B
CODE: OUTPUT:
clc
% Step function
subplot(1,2,1)
step(T_1);
legend
% Impulse function
subplot(1,2,2)
impulse(T_1);
legend
NAME: AHMAD HASSAN
SECTION: A
CMS ID: 345975
EXERCISE NO 02:
Find the step response of following second order systems. Show the characteristics of time
response i-e peak time, rise time etc. Characterized the following systems response as
critically damped, under-damped, or over-damped.
NAME: AHMAD HASSAN
SECTION: A
CMS ID: 345975
PART A
CODE:
clc
% Step input
step(h_1);
legend
OUTPUT:
PART B
CODE:
clc
% Step function
step(T_1);
legend
PART C
CODE: OUTPUT
clc
% Defining transfer function
T_1 = tf([0 0 225],[1 30 225])
% Step function
step(T_1);
legend
PART D
CODE OUTPUT
clc
% Step function
step(T_1);
legend