Control Lab Exp6
Control Lab Exp6
OBJECTIVE - Determine the State Space representations of the given transfer function.
SOFTWARE REQUIRED-MATLAB
THEORY-
In control systems, dynamic behaviour of linear time-invariant (LTI) systems can be described using
either transfer functions or state-space models. While transfer functions relate the input and output in the
frequency domain, state-space representation captures the internal dynamics of the system in the time
domain using first-order differential equations.
State-Space Model
The state-space model of an LTI system is given by:
x(t)= Ax(t)+ Bu(t)
y(t)= Cx(t)+ Du(t)
Where:
• x(t) is the state vector (describes internal states of the system),
• u(t) is the input,
• y(t) is the output,
• A,B,C,D are constant matrices describing system dynamics.
Let Transfer Function
𝟐𝐬+𝟓 .
H(s)=
𝒔𝟐 +𝟑𝐬+𝟒
MATLAB CODE-
clc;
clear;
num = [2 5];
den = [1 3 4];
[A, B, C, D] = tf2ss(num, den);
disp('State-Space Representation:');
disp('A = '); disp(A);
disp('B = '); disp(B);
disp('C = '); disp(C);
disp('D = '); disp(D);
OUT PUT:
State-Space Representation:
A=
-3 -4
1 0
B=
1
0
C=
2 5
D=
0