Vous êtes sur la page 1sur 21

Université de Jijel Département d’Electronique

TP№ 2

Modélisation des systèmes sous Matlab


et diagramme fonctionnels

Présenté par :

- Lotfi Bouchefirat
- Himeur Ahmed

3ème Année LMD

Année Universitaire

2017-2018
TP_2.1 :
a/

>> G1=tf ([10], [1 2 5])

Transfer function:

10

-------------

S^2 + 2 s + 5

>> G2=tf ([1], [0 1 1])

Transfer function:

-----

s+1

>> G=G1+G2

Transfer function:

S^2 + 12 s + 15

---------------------

S^3 + 3 s^2 + 7 s + 5

b/

>>Pole(G1)
Ans =

-1.0000 + 2.0000i

-1.0000 - 2.0000i

>>Pole(G2)

ans =

-1

>> Pole(G)

ans =

-1.0000 + 2.0000i

-1.0000 - 2.0000i

-1.0000

>>Zero(G1)

Ans =

Empty matrix: 0-by-1

>>Zero(G2)

Ans =

Empty matrix: 0-by-1

>>Zero(G)

Ans =

-10.5826
-1.4174

c/tracer la réponse impulsionnelle et indicielle :

>> impulse (G1, G2, G)

>>Step (G1, G2, G)


2/

- calculer les pôles et les zéros de la fonction de transfert G(s) /


H(s) :

G(s)

>> sys1=tf ([6 0 1], [1 3 3 1])

Transfer function:

6 s^2 + 1

---------------------

S^3 + 3 s^2 + 3 s + 1

>>Pole (sys1)

Ans =
-1.0000 + 0.0000i

-1.0000 - 0.0000i

-1.0000

>>Zero (sys1)

Ans =

0 + 0.4082i

0 - 0.4082i

H(s)

>> sys2=tf([1 3 2],[1 3 4 12])

Transfer function:

s^2 + 3 s + 2
----------------------
s^3 + 3 s^2 + 4 s + 12

>> s=G/H

S =

6 s^5 + 18 s^4 + 25 s^3 + 75 s^2 + 4 s + 12


-------------------------------------------
s^5 + 6 s^4 + 14 s^3 + 16 s^2 + 9 s + 2

>>pole(S)

ans =
-2.0000
-1.0002 + 0.0002i
-1.0002 - 0.0002i
-0.9998 + 0.0002i
-0.9998 - 0.0002i
>>zero(S)

ans =

-3.0000
-0.0000 + 2.0000i
-0.0000 - 2.0000i
-0.0000 + 0.4082i
-0.0000 - 0.4082i

TP_2.2

a/ série :

>> sys1=tf ([0 0 1], [500 0 0])

Transfer function:

-------

500 s^2

>> sys2=tf ([0 1 1], [0 1 2])

Transfer function:

s+1

-----

s+2

>> Sys=sys1*sys2

Transfer function:
s+1

------------------

500 s^3 + 1000 s^2

>> Pole (sys1)

Ans =

>>Pole (sys2)

Ans =

-2

>>Pole (Sys)

Ans =

-2

>>Zero (sys1)

Ans =

Emptymatrix: 0-by-1

>>Zero (sys2)

Ans =

-1

>>Zero (Sys)
Ans =

-1

b/parrallèle :

>> G1=tf ([0 0 10], [1 2 5])

Transfer function:

10

-------------

S^2 + 2 s + 5

>> G2=tf ([0 0 1], [0 1 1])

Transfer function:

-----

s+1

>> Sys=parallel (G1, G2)

Transfer function:

S^2 + 12 s + 15

---------------------

S^3 + 3 s^2 + 7 s + 5

>>Pole (sys1)

Ans =

>>Pole (Sys)
Ans =

-1.0000 + 2.0000i

-1.0000 - 2.0000i

-1.0000

>>Zero (Sys)

Ans =

-10.5826

-1.4174

>>impulse (Sys)
>>Step (Sys)

c) Feedback ( cas : retour unitaire )

>> =G=tf([1],[500 0 0])


1

-------

500 s^2

>>Gc=tf([1 1],[1 2])

Gc =

s + 1
-----
s + 2

>>sys1=G*Gc
s+1
------------------
500 s^3 + 1000 s^2

>>sys=feedback(sys1,[1],-1)

s+1

--------------------------

500 s^3 + 1000 s^2 + s + 1

d) Feedback ( cas : retour non unitaire )

G=tf([6 0 1],[1 3 3 1]);

H=tf([1 3 2],[1 3 4 12]);

sys=feedback(G,H);

pole(sys);

zero(sys);

e/Reduction multi-couples :

>>G1=tf ([0 0 1], [0 1 10])

Transfer function:

------

s + 10

>> G2=tf ([0 0 1], [0 1 1])


Transfer function:

-----

s+1

>>G3=tf ([1 0 1], [1 4 4])

Transfer function:

S^2 + 1

-------------

S^2 + 4 s + 4

>>G4=tf ([0 1 1], [0 1 6])

Transfer function:

s+1

-----

s+6

>> H1=tf ([0 1 1], [0 1 2])

Transfer function:

s+1

-----

s+2

>> H2=tf ([0 0 2], [0 0 1])

Transfer function:

>>H3=tf ([0 0 1], [0 0 1])


Transfer function:

>> sys1=series (G3, G4)

Transfer function:

S^3 + s^2 + s + 1

------------------------

S^3 + 10 s^2 + 28 s + 24

>> sys2=H2/G4

Transfer function:

2 s + 12

--------

s+1

>> sys3=feedback (sys1, H1, +1)

Transfer function:

S^4 + 3 s^3 + 3 s^2 + 3 s + 2

-----------------------------

10 s^3 + 46 s^2 + 78 s + 47

>> sys4=series (G2, sys3)

Transfer function:

S^4 + 3 s^3 + 3 s^2 + 3 s + 2

--------------------------------------

10 s^4 + 56 s^3 + 124 s^2 + 125 s + 47

>> sys5=feedback (sys4, sys2)


Transfer function:

S^5 + 4 s^4 + 6 s^3 + 6 s^2 + 5 s + 2

------------------------------------------------

12 s^5 + 84 s^4 + 222 s^3 + 291 s^2 + 212 s + 71

>> sys6=series (G1, sys5)

Transfer function:

S^5 + 4 s^4 + 6 s^3 + 6 s^2 + 5 s + 2

----------------------------------------------------------------

12 s^6 + 204 s^5 + 1062 s^4 + 2511 s^3 + 3122 s^2 + 2191 s + 710

>> sys7=feedback (sys6, [1])

Transfer function:

S^5 + 4 s^4 + 6 s^3 + 6 s^2 + 5 s + 2

----------------------------------------------------------------

12 s^6 + 205 s^5 + 1066 s^4 + 2517 s^3 + 3128 s^2 + 2196 s + 712

Example:

Controlee d’un moteurélectrique à traction

Td(s)=0

>>G1=tf ([0 0 10], [0 1 1])

Transfer function:

10

-----

s+1

>> G2=tf ([0 0 1], [0 2 0.5])


Transfer function:

---------

2 s + 0.5

>> G3=tf ([0 0 540], [0 0 1])

Transfer function:

540

>> k=0.1

k=

0.1000

>> sys1=series (G2, G1)

Transfer function:

10

-------------------

2 s^2 + 2.5 s + 0.5

>> sys2=feedback (sys1, k, +1)

Transfer function:

10

-------------------

2 s^2 + 2.5 s - 0.5


>> sys3=series (sys2, G3)

Transfer function:

5400

-------------------

2 s^2 + 2.5 s - 0.5

>> sys4=feedback (sys3, [1])

Transfer function:

5400

--------------------

2 s^2 + 2.5 s + 5400

>>Pole=sys4

Transfer function:

5400

--------------------

2 s^2 + 2.5 s + 5400

>> Zero=sys4

Transfer function:

5400

--------------------

2 s^2 + 2.5 s + 5400

>>impulse (sys4)
R(s)=0

>> G1=tf ([0 0 10], [0 1 1])

Transfer function:

10

-----

s+1

>> G2=tf ([0 0 1], [0 2 0.5])

Transfer function:

1
---------

2 s + 0.5

>> G3=tf ([0 0 540], [0 0 1])

Transfer function:

540

>> sys4= ([540.1])

sys4 =

540.1000

>> sys5=series (sys4, G1)

Transfer function:

540.1

------

s+1

>> sys6=feedback (sys5, G2)

Transfer function:

10802 s + 2701

--------------------

2 s^2 + 2.5 s + 5402