touseef
touseef
System Diagram:
• A mass (M) is connected to a spring (K) and a damper (B).
• A force F(t) is applied, causing displacement x(t).
Governing Equation:
Applying Newton’s second law:
Laplace Transform:
Transfer Function:
MATLAB CODE
M = 2; B = 3; K = 5;
num = [1];
den = [M B K];
G_mech = tf(num, den)
impulse(G_mech)
title('Impulse Response of Mass-Spring-Damper System')
2. RLC Circuit (Electrical System)
System Diagram:
• A series circuit consists of a resistor (R), inductor (L), and capacitor (C).
• Input: Voltage V(t), Output: Current I(t).
Governing Equation:
Using Kirchhoff’s Voltage Law (KVL):
Transfer Function:
MATLAB CODE:
L = 0.5; R = 1; C = 0.25;
num = [1];
den = [L R 1/C];
G_elec = tf(num, den)
impulse(G_elec)
title('Impulse Response of RLC Circuit')
System Diagram:
• A DC motor converts electrical energy into mechanical motion.
• Input: Voltage V, Output: Angular velocity ω
Governing Equations:
Electrical equation (Kirchhoff's Voltage Law):
MATLAB Code:
J = 0.01; B = 0.1; K_t = 0.01; R = 1; L = 0.5; K_b = 0.01;
num = [K_t];
den = [J*L J*R + B*L B*R + K_t*K_b];
G_motor = tf(num, den)
impulse(G_motor)
title('Impulse Response of DC Motor')
4. Pendulum System (Mechanical System)
System Diagram:
• A pendulum consists of a mass (m) attached to a rod (length L).
• Input: Torque T, Output: Angular displacement θ
Governing Equation:
Using Newton’s second law for rotational motion:
Transfer Function:
MATLAB Code
I = 2; b = 0.5; m = 1; g = 9.81; L = 1;
num = [1];
den = [I b m*g*L];
G_pendulum = tf(num, den)
impulse(G_pendulum)
title('Impulse Response of Pendulum System')
System Diagram:
• A water tank has an inlet flow qin and an outlet flow qout
• Output: Water height h(t)
Governing Equation:
Mass balance equation:
Transfer Function:
MATLAB Code:
A = 2; R = 0.1;
num = [1];
den = [A 1/R];
G_tank = tf(num, den)
impulse(G_tank)
title('Impulse Response of Liquid-Level System')
Impulse Function and Response Graphs
• The impulse function (Dirac Delta function) represents an idealized force or input
applied in an infinitesimally short time with an area of 1.
• It is used in system analysis to determine the system’s response to a sudden force or
disturbance.
Why is it important?
• The roots of the characteristic equation (poles) determine the system’s stability and
response.
• If all roots have negative real parts, the system is stable.
• If any root has a positive real part, the system is unstable.
• Complex roots indicate oscillatory behaviour.