User`s guide

Table Of Contents
Resampling of Discrete-Time Models
3-27
Resampling of Discrete-Time Models
You can resample a discrete-time TF, SS, or ZPK model sys1 by typing
sys2 = d2d(sys1,Ts)
The new sampling period Ts does not have to be an integer multiple o f the
original sampling period. For ex ample, typing
h1 = tf([1 0.4],[1 –0.7],0.1);
h2 = d2d(h1,0.25);
resamples h1 at the sampling period of 0.25 second s, rather than 0.1 seconds.
You can compare the step responses of
h1 and h2 by typing
step(h1,'--',h2,'-')
The resulting plot is shown on the figure below (h1 is the dashed line).