0% found this document useful (0 votes)
24 views2 pages

State Space Representation in MATLAB

The document outlines an experiment to determine the State Space representations of a given transfer function using MATLAB. It explains the theory behind state-space models and provides the relevant equations and MATLAB code to convert the transfer function into its state-space form. The output includes the matrices A, B, C, and D that represent the system dynamics.

Uploaded by

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

State Space Representation in MATLAB

The document outlines an experiment to determine the State Space representations of a given transfer function using MATLAB. It explains the theory behind state-space models and provides the relevant equations and MATLAB code to convert the transfer function into its state-space form. The output includes the matrices A, B, C, and D that represent the system dynamics.

Uploaded by

singhanisha073
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EXPERIMENT -6

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

You might also like