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

Transfer Function State Space Representation RLC Circuit Example 2

This document describes two dynamic models - the transfer function model and state space representation - for an RLC circuit with four terminals. It provides the equations to derive the transfer function H(s) by treating the circuit as a voltage divider. It also gives the general state space representation equations and applies them to the RLC circuit by deriving the state, input, output, and feedthrough matrices. Finally, it discusses simulating both models in MATLAB using functions like lsim() for the transfer function and impulse(), step(), and bode() for the state space model.

Uploaded by

Latif Kebbabi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
805 views

Transfer Function State Space Representation RLC Circuit Example 2

This document describes two dynamic models - the transfer function model and state space representation - for an RLC circuit with four terminals. It provides the equations to derive the transfer function H(s) by treating the circuit as a voltage divider. It also gives the general state space representation equations and applies them to the RLC circuit by deriving the state, input, output, and feedthrough matrices. Finally, it discusses simulating both models in MATLAB using functions like lsim() for the transfer function and impulse(), step(), and bode() for the state space model.

Uploaded by

Latif Kebbabi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

http://www.mbstudent.com/control-theory.

html

Transfer function and state space representation of electric RLC


circuit.

Picture 1. Example RLC circuit with four terminals.

For RLC circuit with four terminals shown above we will designate dynamic models in forms:
Laplace transfer function and state space representation equations. We assume that start
conditions for Laplace transformation are equal to zero ( ).

1. Dynamic model of circuit in form transfer function H(s).

We treat circuit as a voltage divider. We will calculate its resultant impedance in Laplace
transformation form. We assume start conditions for Laplace transformation as equal to
zero ( ).

Page 1 from 4
http://www.mbstudent.com/control-theory.html
Note that

Output voltage is the equal

2. Dynamic model in form state space representation equations.

General form of state space representation equations is following:

Where:

[A]- state matrix, [B]- input matrix, [C]- output matrix, [D]- feedthrough matrix

Because elements R, L, C are connected in series then:

Page 2 from 4
http://www.mbstudent.com/control-theory.html

We write equation in this way to place derivative of the biggest degree at the left side of
equation.

State space representation, state matrix [A] and input matrix [B]:

State space representation, output matrix(vector) [C] and feedthrough matrix(vector) [D]:

3. Simulations in MATLAB.
We have designated two dynamic models. First model is in form of transfer function. Second
model is in from state space representation equations. We have all necessary data to
execute simulation in MATLAB.

3.1. Simulation in MATLAB through transfer function H(s).


Simulation of system answer for jump extortion its possible through function. First we
have to create m-file which contains parameters of electric circuit.

Page 3 from 4
http://www.mbstudent.com/control-theory.html

Sample code to executing simulation:

R=100;%resistance value
L=0.01;%inductivity value
C=0.001;%capacity value
t=0:0.000001:1;%time vector definition
uin=ones(1,length(t));%definition for unit extortion with application of ones function
c=[L];%vector with transfer function counter factors
d=[L R 1/C];% vector with transfer function denominator factors
lsim(c,d,uin,t);

3.2. Simulation in MATLAB through state space representation.


MATLAB is really very powerful calculation tool. It has in its resources functions which allow
us to plot impulse response characteristic, step response characteristic and frequency
response characteristics.

impulse(A,B,C,D)

step(A,B,C,D)

bode(A,B,C,D)

Using specified above functions we can plot characteristics of object. It is necessary to give
input parameters as: state matrix, input matrix, output matrix and feedthrough matrix. In
considered example appearance of input parameters is following:

MATLAB gives us possibility to create our own functions. Plenty of functions which are in
MATLABs library were defined by users.

Page 4 from 4

You might also like