clc, close all, clear

s = tf('s');
G1 = 1/s;
G2 = 1/(s+3);
G3 = 10;
G4 = 1/(s+2);
G5 = 1/(s+1);

sim('blk_m',100)
t1 = ScopeData.time;
y1 = ScopeData.signals.values;

Ga = G1*G2*G3;
Gb = G4/(1+G4*G5);
Gc = Ga+Gb;

sim('step_blk',100)
t2 = ScopeDataStep.time;
y2 = ScopeDataStep.signals.values;

figure;
plot(t1,y1)
hold on
plot(t2,y2,'--r')
hold off

