% define the LTI system by tf % G(z)=(z+1)/(z-1)/(z-0.5) % and then draw the step response % define the coef of the numerator of the tf num_z=[1 1]; den_z=[1 -1.5 0.5]; Ts1=0.5; G_z=tf(num_z,den_z,Ts1); Tf=10; figure step(G_z,Tf) hold on grid on