Vous êtes sur la page 1sur 8

TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 1


1. Montage en cascade : A- Excuter les programmes ci-dessous :
Code programme1 Excution Interprtions des rsultats :
close all
clear all
clc


num1=[10]

den1=[1 2 10]


printsys(num1,den1)






num2= [5]

den2= [1 5]

printsys(num2,den2)




[num,den]=series(num1,den1,num2,den2)




printsys(num,den)






G1=tf(num1,den1)

Rien



num1 =
10
den1 =
1 2 10

num/den =
10
--------------
s^2 + 2 s + 10


num2 =
5
den2 =
1 5
num/den =
5
-----
s + 5

num =
0 0 0 50
den =
1 7 20 50

num/den =
50
----------------------
s^3 + 7 s^2 + 20 s +
50

Transfer function:
10
--------------
s^2 + 2 s + 10
effacer la fentre de travail
fermer la ou les figures ouvertes
efface les variables de lespace
de travail, et les liens vers les
fonctions Utilises
Vectre line

Vectre line










Vectre line

Vectre line








Vectre line


Vectre line



F(p) transforme de laplace





Fonction de Transfer


Code programme2 Excution et Interprtions des rsultats
num1=[10]
den1=[1 2 10]
G1=tf(num1,den1)

num2=[5]
den2=[1 5]



G2=tf(num2,den2)




sys=series(G1,G2)


num1 = 10 Vectre line
den1 = 1 2 10 Vectre line
Transfer function: fonction de transfer
10
--------------
s^2 + 2 s + 10
num2 = 5 Vectre line
den2 = 1 5 Vectre line
Transfer function: Fonction de transfert
5
-----
s + 5
Transfer function:
50
-----------------------
s^3 + 7 s^2 + 20 s + 50
TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 2
B- la fonction de transfert sans utiliser linstruction sries
Code programme : Excution
num1=[10]
den1=[1 2 10]
G1=tf(num1,den1)



num2=[5]
den2=[1 5]

G2=tf(num2,den2)



G3=G1*G2



num1 = 10
den1= 1 2 10
Transfer function:
10
--------------
s^2 + 2 s + 10
num2 = 5
den2 = 1 5

Transfer function:
5
-----
s + 5

Transfer function:
50
-----------------------
s^3 + 7 s^2 + 20 s + 50



2. Montage en parallle :
A-En utilisant linstruction parallel
Code programme Excution
num1=[10]
den1=[1 2 10]
printsys(num1,den1)



num2=[5]
den2=[1 5]
printsys(num2,den2)


[num,den]=parallel(num1,den1,num2,den2)

printsys(num,den)



num1 = 10
den1 = 1 2 10
num/den =
10
--------------
s^2 + 2 s + 10
num2 = 5
den2 = 1 5
num/den =
5
-----
s + 5
num = 0 5 20 100
den =1 7 20 50
num/den =

5 s^2 + 20 s + 100
-----------------------
s^3 + 7 s^2 + 20 s + 50
B-Sans utiliser linstruction parallel
Code programme Excution

num1=[10]
den1=[1 2 10]
G1=tf(num1,den1)




num1 =10
den1 =1 2 10

Transfer function:
10
--------------
s^2 + 2 s + 10

TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 3
num2=[5]
den2=[1 5]
G2=tf(num2,den2)




G3=G1+G2



num2 =5
den2 = 1 5
Transfer function:
5
-----
s + 5


Transfer function:
5 s^2 + 20 s + 100
-----------------------
s^3 + 7 s^2 + 20 s + 50


3. Montage retour ngatif :
A-En utilisant linstruction feedback
Code programme Excution
num1=[10]
den1=[1 2 10]
G1=tf(num1,den1)



printsys(num1,den1)


num2=[5]
den2=[1 5]

G2=tf(num2,den2)



printsys(num2,den2)



[num,den]=feedback(num1,den1,num2,den2)

printsys(num,den)


num1 =10
den1 = 1 2 10

Transfer function:
10
--------------
s^2 + 2 s + 10
num/den =
10
--------------
s^2 + 2 s + 10
num2 = 5
den2 = 1 5

Transfer function:
5
-----
s + 5
num/den =
5
-----
s + 5
num =0 0 10 50
den =1 7 20 100


num/den =

10 s + 50
------------------------
s^3 + 7 s^2 + 20 s + 100

OU :
Code programme Excution
num1=[10]
den1=[1 2 10]
printsys(num1,den1)



num1 = 10
den1 = 1 2 10
num/den =
10
--------------
s^2 + 2 s + 10

TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 4
num2=[5]
den2=[1 5]
printsys(num2,den2)




[num,den]=feedback(num1,den1,num2,den2,-1)

printsys(num,den)

num2 =5
den2 = 1 5
num/den =
5
-----
s + 5

num = 0 0 10 50
den = 1 7 20 100

num/den =

10 s + 50
------------------------
s^3 + 7 s^2 + 20 s + 100


B- Sans utiliser linstruction feedback
Code programme Excution
num1=[10]
den1=[1 2 10]
G1=tf(num1,den1)



num2=[5]
den2=[1 5]
G2=tf(num2,den2)


g3=G1/(1+(G1*G2))

num1 = 10
den1 = 1 2 10
Transfer function:
10
--------------
s^2 + 2 s + 10

num2 = 5
den2 = 1 5
Transfer function:
5
-----
s + 5
Transfer function:
10 s^3 + 70 s^2 + 200 s + 500
---------------------------------------------
s^5 + 9 s^4 + 44 s^3 + 210 s^2 + 400 s + 1000


4. Montage retour positif :
A-En utilisant linstruction feedback
Code programme Excution
num1=[10]
den1=[1 2 10]
printsys(num1,den1)


num2=[5]
den2=[1 5]
printsys(num2,den2)


[num,den]=feedback(num1,den1,num2,den2,+1)

printsys(num,den)

num1 =10
den1 =1 2 10
num/den =
10
--------------
s^2 + 2 s + 10

num2 =5
den2 =1 5
num/den =
5
-----
s + 5
num =0 0 10 50
den =1 7 20 0
num/den =
10 s + 50
------------------
s^3 + 7 s^2 + 20 s

TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 5
B- Sans utiliser linstruction feedback
Code programme Excution
num1=[10]
den1=[1 2 10]
G1=tf(num1,den1)



num2=[5]
den2=[1 5]
G2=tf(num2,den2)



G3=G1/(1-(G1*G2))

num1 =10
den1 =1 2 10
Transfer function:
10
--------------
s^2 + 2 s + 10

num2 = 5
den2 =1 5
Transfer function:
5
-----
s + 5
Transfer function:
10 s^3 + 70 s^2 + 200 s + 500
--------------------------------------
s^5 + 9 s^4 + 44 s^3 + 110 s^2 + 200 s



Application de votre choix :
G1=s/s^2+10 G2=s^2/s^3+2s
1. Montage en cascade :
Code programme Excution
close all
clear all
clc
num1=[1]
den1=[1 10]
printsys(num1,den1)


num2= [1]
den2= [1 2]

printsys(num2,den2)



[num,den]=series(num1,den1,num2,den2)

printsys(num,den)




G1=tf(num1,den1)



num1 = 1
den1 = 1 10
num/den =
1
------
s + 10
num2 = 1
den2 = 1 2
num/den =
1
-----
s + 2
num =0 0 1
den =1 12 20
num/den =
1
---------------
s^2 + 12 s + 20
Transfer function:
1
------
s + 10






TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 6
Code programme Excution
num1=[1]
den1=[1 10]
G1=tf(num1,den1)




num2=[1]
den2=[1 2]
G2=tf(num2,den2)



sys=series(G1,G2)


num1 =1
den1 = 1 10
Transfer function:
1
------
s + 10
num2 =1
den2 =1 2
Transfer function:
1
-----
s + 2
Transfer function:
1
---------------
s^2 + 12 s + 20


2. Montage en parallle :
A-En utilisant linstruction parallel
Code programme Excution
num1=[1]
den1=[1 10]
G1=tf(num1,den1)



num2=[1]
den2=[1 2]

G2=tf(num2,den2)



G3=G1*G2


num1 = 1
den1 = 1 10
Transfer function:
1
------
s + 10

num2 = 1
den2 =1 2

Transfer function:
1
-----
s + 2

Transfer function:
1
---------------
s^2 + 12 s + 20


B-Sans utiliser linstruction parallel
Code programme Excution
num1=[1]
den1=[1 10]
G1=tf(num1,den1)
num2=[1]
den2=[1 2]
G2=tf(num2,den2)
G3=G1+G2


num1 = 1
den1 =1 10
Transfer function:1/s+10
num2 = 1
den2 =1 2
Transfer function: 1/s+2
Transfer function: 2 s + 12/s^2+12s+20






TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 7
3Montage retour ngatif :
A-En utilisant linstruction feedback
Code programme Excution
num1=[1]
den1=[1 10]
G1=tf(num1,den1)



printsys(num1,den1)


num2=[1]
den2=[1 2]

G2=tf(num2,den2)



printsys(num2,den2)



[num,den]=feedback(num1,den1,num2,den2)

printsys(num,den)


num1 = 1
den1 = 1 10
Transfer function:
1
------
s + 10
num/den =
1
------
s + 10
num2 = 1
den2 = 1 2
Transfer function:
1
-----
s + 2


num/den =
1
-----
s + 2
num = 0 1 2
den = 1 12 21
num/den =
s + 2
---------------
s^2 + 12 s + 21


B-Sans utiliser linstructionfeedback
Code programme Excution
num1=[1]
den1=[1 10]
G1=tf(num1,den1)



num2=[1]
den2=[1 2]
G2=tf(num2,den2)


g3=G1/(1+(G1*G2))

num1 = 1
den1 = 1 10
Transfer function:
1
------
s + 10

num2 = 1
den2 = 1 2
Transfer function:
1
-----
s + 2
Transfer function:
s^2 + 12 s + 20
--------------------------
s^3 + 22 s^2 + 141 s + 210






TPN 3 : Fonction de transfert et Schma bloc

Bensghir Sofiane et Benslama Ahmed Page 8
4. Montage retour positif :
A-En utilisant linstruction feedback
Code programme Excution
num1=[1]
den1=[1 10]
printsys(num1,den1)


num2=[1]
den2=[1 2]
printsys(num2,den2)



[num,den]=feedback(num1,den1,num2,den2,+1)

printsys(num,den)

num1 =1
den1 = 1 10
num/den =
1
------
s + 10

num2 = 1
den2 = 1 2
num/den =
1
-----
s + 2
num = 0 1 2
den = 1 12 19

num/den =
s + 2
---------------
s^2 + 12 s + 19

B- Sans utiliser linstruction feedback
Code programme Excution
num1=[1]
den1=[1 10]
G1=tf(num1,den1)



num2=[1]
den2=[1 2]
G2=tf(num2,den2)



G3=G1/(1-(G1*G2))

num1 =1
den1 =1 10
Transfer function:
1
s + 10



num2 = 1
den2 = 1 2
Transfer function:
1
-----
s + 2
Transfer function:
s^2 + 12 s + 20
--------------------------
s^3 + 22 s^2 + 139 s + 190

Vous aimerez peut-être aussi