This example shows how to upsample a system using both the d2d and upsample commands and compares the results of both to the original system.
Upsampling a system can be useful, for example, when you need to implement a digital controller at a faster rate than you originally designed it for.
Create the discrete-time system G(z)=
z+0.4
z−0.7
with a sample time of 0.3 s.