% % Example 2.12 % % continuous-time step function t=-3:0.01:5; t0=1; u=stepfun(t,t0); figure (1) plot(t,u) xlabel('time t') ylabel('u(t-1)') title('continuous-time shifted step function') % discrete-time step function k=-3:1:5; k0=2 du=stepfun(k,k0) figure (2) plot(k,du,'*') title ('discrete-time step function') xlabel('time k') ylabel('u[k-2]')