You are on page 1of 3

Nama : Endik Prasetya

Sistem Kontrol

NIM : 201210130311117
Kelas : Elektro 6C

Soal :

r (t)

+
_

17
s (s+7)

Bandingkan dengan mengalikan :


a. 1,5 x 17
b. 2 x 17
Jawab :
>> g1 = tf ([17], conv ([1 0], [1 7])) ;
>> g2 = tf ([25,5], conv ([1 0], [1 7])) ;
>> g3 = tf ([34], conv ([1 0], [1 7])) ;
>> h = tf ([1], [1]) ;
>> sys = feedback (g1,h)
Transfer function:
17
-------------s^2 + 7 s + 17
>> sys1 = feedback (g2,h)
Transfer function:
25 s + 5
-------------s^2 + 32 s + 5

c (t)

>> sys2 = feedback (g3,h)


Transfer function:
34
-------------s^2 + 7 s + 34
>> [y,t] = step (sys) ;
>> [y1,t1] = step (sys1) ;
>> [y2,t2] = step (sys2) ;
>> plot (t,y,t1,y1,t2,y2) ;
>> legend ('k=17', 'm=25,5', 'p=34')
>> title ('Tugas 1 System Kontrol Endik Prasetya')
>> xlabel ('t(detik)')
>> ylabel ('c(t)')

You might also like