0% found this document useful (0 votes)
27 views2 pages

ES6111 Institut Teknologi Padang Job 6 Diagram Bode: % Generate Logarithmically

The document outlines a MATLAB simulation exercise for generating Bode diagrams using specified numerator and denominator values. It includes multiple examples of MATLAB code for plotting amplitude response in dB and phase angle response in degrees. Each example is structured to create subplots for visualizing the frequency response of different transfer functions.

Uploaded by

Al Mtdrs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

ES6111 Institut Teknologi Padang Job 6 Diagram Bode: % Generate Logarithmically

The document outlines a MATLAB simulation exercise for generating Bode diagrams using specified numerator and denominator values. It includes multiple examples of MATLAB code for plotting amplitude response in dB and phase angle response in degrees. Each example is structured to create subplots for visualizing the frequency response of different transfer functions.

Uploaded by

Al Mtdrs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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)

You might also like