Praktikum Sistem Pengaturan
INSTITUT TEKNOLOGI PADANG ES6111
JOB 6
DIAGRAM BODE
1. Lakukan simulasi dengan matlab sesuai list program dibawah ini:
num=[10 30];
den=[1 3 4 4 0];
w=logspace(-1,2); % generate logarithmically
('spaced row vektor')
[mag,phase]=bode(num,den,w);
dB=20*log10(mag);
subplot(211),semilogx(w, dB) % semilogx generates a plot
('with a linear')
% vertical scale and a horizontal log
base
title('Nama (NIM) Amplitude response (dB) versus w'), grid
subplot(212),semilogx(w, phase)
title(' Nama (NIM) Phase angle response (degree) versus w'), grid
subplot(111)
2. Untuk Contoh 2 Listing Programnya:
num= 2500; den=[1
20 2500];
w=logspace(-1,2);
('spacedrowvektor')
[mag,phase]=bode(num,den,w);
dB=20*log10(mag);
subplot(211),semilogx(w, dB)
('with a linear')
('horizontal log base')
title(' Nama (NIM) Amplitude response (dB) versus w'),grid
subplot(212),semilogx(w, phase)
title(' Nama (Nim) Phase angle response (degree) versus w'), grid
subplot(111)
3. Untuk Latihan Listing Programnya:
k=1300;
num= k;
den=[1 50];
plant=tf(num,den);
w=logspace(-1,2);
('spacedrowvektor')
[mag,phase]=bode(num,den,w);
dB=20*log10(mag);
subplot(211),semilogx(w, dB)
('with a linear')
('horizontal log base')
title(' Nama (Nim) Amplitude response (dB) versus w'),grid
subplot(212),semilogx(w, phase)
title(' Nama(Nim) Phase angle response (degree) versus w'), grid
subplot(111)