clear all; close all;
K = 1;
T1 = 10;
T2 = 0.2;
num = [ 0 K ];
den1 = [ T1 1 ];
den2 = [ T2 1 ];
den3 = [ T1*T2 T1+T2 1 ];
sys1 = tf( num, den1 );
sys2 = tf( num, den2 );
sys3 = tf( num, den3 );
w = logspace(-2, 2, 1000);
figure(1)
bode(sys1,w);
grid;
title('Bode diagram of G_1(s)')
h = findobj(gcf,'type','line');
set(h,'linewidth',2);
figure(2)
bode(sys2,w);
grid;
title('Bode diagram of G_2(s)')
h = findobj(gcf,'type','line');
set(h,'linewidth',2);
figure(3)
bode(sys3,w);
grid;
title('Bode diagram of G(s)')
h = findobj(gcf,'type','line');
set(h,'linewidth',2);
figure(4)
bode(sys1,sys2,sys3,w);
grid;
h = findobj(gcf,'type','line');
set(h,'linewidth',2);
legend('G_1(s)', 'G_2(s)', 'G(s)')