%
% ATM Switch Case Study and Figures 5.8 and 5.9
%
numy=[2.5 -0.5]
deny=[1 0.5 0.5 0]
nume=[-1 1]
dene=[1 0.5 0.5]
k=0:1:30;
ystep=dstep(10*numy,deny,k)
figure (1)
plot(k,ystep,'*')
xlabel('discrete time')
ylabel('packet arrival rate')
grid
print -deps fig5_8.eps
estep=dstep(10*nume,dene,k)
figure (2)
plot(k,estep,'*')
xlabel('discrete time')
ylabel('deviations from the desired queue length');
grid
print -deps fig5_9.eps
