% Solution of Problem 2.19 num1=[3 -1 0]; den1=[1 2 5]; num2=[2 1 0]; den2=conv([1 4],conv([1 -1],[1 -0.2])); n=0:1:10; subplot(211) [y1,x1]=dstep(num1,den1,11); dstep(num1,den1,11); grid ylabel('y1') disp(' ') disp('Output samples for y1') y1 subplot(212) [y2,x2]=dimpulse(num2,den2,11); dstep(num2,den2,11); grid ylabel('y2') disp(' ') disp('Output samples for y2') y2