3. Tugas 1a
Kode program :
Tugas 1b
kode program k = 2:
%Praktikum Sistem Kendali Gambar diatas merupakan plot dari code program
%Modul: 3 yang kita buat.
%Nama : Frans Wesly Sagala
Tugas2a
%NIM : 14S19018
Kode program:
num = [0 0 0 1];
den = [1 2 6 0];
%Praktikum Sistem Kendali
rlocus(num,den)
%Modul: 3
%Nama : Frans Wesly Sagala
v = [-6 6 -6 6];
%NIM : 14S19018
axis(v);
axis('square')
num = [16];
grid
den=[1 4 16];
title('root Locus Plot')
r=rlocus(num,den);
sys = tf(num,den);
k2 = [1 2 6 2]; %k=2
step(sys)
roots(k2)
hold on
k4 = [1 4 6 4]; %k=4
plot(r, '-')
roots(k4)
k10 = [1 10 6 10]; %k=10
roots(k10)
k12 = [1 12 6 12]; %k=12 Output:
roots(k12)
output:
ans =
-0.8147 + 2.1754i
-0.8147 - 2.1754i
-0.3706 + 0.0000i
ans =
-2.0000 + 0.0000i
-1.0000 + 1.0000i
-1.0000 - 1.0000i
ans =
-9.4783 + 0.0000i
-0.2609 + 0.9935i
-0.2609 - 0.9935i
Output:
Tugas2b
num1 = [1]
den1 = [1 4 0 0]
num2 = [60.944 24.3776];
den2 = [1 12.041 32.164 0 0]
G1 = tf(num1, den1)
G2 = tf(num2, den2)
sys1 = 1 / (1 + G1)
sys2 = 1 / (1 + G2)
>> modul3_Latihan3
t = 0:0.05:20
c1 = step(sys2, t)
c2 = step(sys1, t) ans =
plot(t,c1,'-',t,c2)
9.9301 103.6573 4.0132 0.4426
output:
>>
Tugas3b
Kode program:
Output:
G2 =
-s + 1
-------
2s+1
>>
Gambar diatas merupakan output minimum phase Pada gambar diatas dapat kita lihat merupkan plot
yang dihasilkan dari kode program yang kita buat.
Bahwa titik ke empat sumbu berada pada nol
terhadap sumbu imaginer dan real.
(ii) kode program:
num=[0 50 ];
den=[1 6 5 0];
w=0.1:0.1:20:50;
[re1,im1,w]=nyquist(num,den,w);
[re2,im2,w]=nyquist(10*num,
Gambar diatas merupakan output maksimum
den,w);
phase. [re3,im3,w]=nyquist(20*num,den,w);
Tugas 4a [re4,im4,w]=nyquist(50*num,den,w);
plot(re1,im1,re2,im2,re3,im3,re4,i
(i) kode program: m4)
v=[-2 2 -2 2];
output: axis(v)
grid
%Praktikum Sistem Kendali
title('Polar plot')
%Modul: 3
xlabel('Real axis')
%Nama : Frans Wesly Sagala
ylabel('Imaginer Axis')
%NIM : 14S19018
Output: