0% found this document useful (0 votes)
47 views3 pages

LCS Lab 5

This document contains instructions and results for a lab assignment on determining transfer functions of electrical circuits using Mason's Gain Formula and the MATLAB solve command. It includes 4 tasks that have students find the transfer function v2/v1 for different circuits by symbolically solving the relevant equations. The last task has students find the transfer function vo/vi for a simple circuit where vi=vo.

Uploaded by

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

LCS Lab 5

This document contains instructions and results for a lab assignment on determining transfer functions of electrical circuits using Mason's Gain Formula and the MATLAB solve command. It includes 4 tasks that have students find the transfer function v2/v1 for different circuits by symbolically solving the relevant equations. The last task has students find the transfer function vo/vi for a simple circuit where vi=vo.

Uploaded by

SaRosh Raees
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Linear Control System 2016-EE-113

Lab #05
OBJECT:
Generate a matlab code to find out the transfer function of the electrical system
THEORY:
This lab is based on the implementation of Mason’s Gain Formula to solve the signal flow graph and
determine its transfer by generating the Matlab code.In this lab we can also find the values of the
intermediate nodes of the signal flow graph by using solve command
 Solve
 Syms
 Pretty
 Simplify

TASK 1:
Find out the transfer function v2/v1 of the following given circuit using solve command.

syms r1 r2 c s i v1 v2
x=solve('v1=(i*r1)+(i/(c*s))+(i*r2)','v2=(i/(c*s))+i*r2',v1,v2)
v1=x.v1
v2=x.v2
g=v2/v1
simplify(g)
pretty(g)

RESULT:
ans =
(c*r2*s + 1)/(c*r1*s + c*r2*s + 1)

TASK 2:
Find out the transfer function v2/v1 of the following given circuit using solve command.
syms r1 l c s i v1 v2
x=solve('v1=l*s*i+i*r1','v2=(i/(c*s))',v1,v2)
v1=x.v1
v2=x.v2
g=v2/v1
simplify(g)
pretty(g)
Result
ans =
1/(c*s*(r1 + l*s))

TASK 3:
Find out the transfer function v2/v1 of the following given circuit using solve command.
syms V1 V2 R1 R2 C I S
x=solve('V1=(I*R2)/(1+R2*C*S)+V2','V2=I*R1',V1,V2)
V1=x.V1

SIR SYED UNIVERSITY OF ENGINEERING AND TECHNOLOGY Page 1


Linear Control System 2016-EE-113

V2=x.V2
g=(V2/V1)
y=simplify(g)
pretty(y)
RESULT:
ans =
R2
1 - --------------------
R2 + R1 (C R2 S + 1)

TASK NO 04:
Find out the transfer function v2/v1 of the following given circuit using solve command.

syms V1 V2 R1 R2 C I S
x=solve('V1=I*R1','V2=I*R2+(I/(C*S))',V1,V2)
V1=x.V1
V2=x.V2
g=(V2/V1)
y=simplify(g)
pretty(y)
RESULT:
ans =
(R2 + 1/(C*S))/R1

1
R2 + ---
CS
--------
R1

LAB ASSIGNMENT
TASK 1:
Find out the transfer function v2/v1 of the following given circuit using solve command.
syms r1 r2 l s i v1 v2
x=solve('v1=l*s*i+i*r+i/(c*s)','v2=i/(c*s)',v1,v2)
v1=x.v1
v2=x.v2
g=v2/v1
simplify(g)
pretty(g)

SIR SYED UNIVERSITY OF ENGINEERING AND TECHNOLOGY Page 2


Linear Control System 2016-EE-113

RESULT:
ans =
1/(c*l*s^2 + c*r*s + 1)

TASK 2:
Find out the transfer function v2/v1 of the following given circuit using solve command.
syms r1 r2 l s i v1 v2
x=solve('v1=i*r1+i*r2+l*s*i','v2=i*r2+l*s*i',v1,v2)
v1=x.v1
v2=x.v2
g=v2/v1
simplify(g)
pretty(g)

RESULT:
ans =
(r2 + l*s)/(r1 + r2 + l*s)

TASK 3:
Find out the transfer function v2/v1 of the following given circuit using solve command.
syms r1 r2 l s i v1 v2
x=solve('v1=i*r1','v2=i*r2+l*s*i',v1,v2)
v1=x.v1
v2=x.v2
g=v2/v1
simplify(g)
pretty(g)

RESULT:
ans =
(r2 + l*s)/r1
TASK NO 04:
Find out the transfer function vo/vi of the following given circuit using solve command.
syms vo vi
x=solve('vi=vo',vi,vo)
vi=x.vi
vo=x.vo
g=vo/vi
simplify(g)
pretty(g)
RESULT:
ans= 1

SIR SYED UNIVERSITY OF ENGINEERING AND TECHNOLOGY Page 3

You might also like