User`s guide
3 Working with Signals
3-96
The “Latency and Initial Conditions” section of the reference page for 
Upsample indicates that the block has zero latency for all multirate operations 
in Simulink’s single-tasking mode. To verify this, look at the output from the 
simulation, 
squeeze(yout)'. The first few samples are shown below.
The first column of 
yout is the Simulink time provided by the Digital Clock 
block. The four values to the right of each time are the values in the output 
frame at that time. 
You can see that the first input value appears as the first sample of the first 
output frame (at t=0), as expected for zero-latency operation. Running this 
model under Simulink’s single-tasking mode therefore eliminates the 
17-sample delay that the model experiences under Simulink’s multitasking 
mode (for the particular parameter settings in the example).
time
ans =
 0 1.0000 0 0 0
 0.2500 2.0000 0 0 0
 0.5000 3.0000 0 0 0
 0.7500 4.0000 0 0 0
 1.0000 5.0000 0 0 0
 1.2500 6.0000 0 0 0
 1.5000 7.0000 0 0 0
 1.7500 8.0000 0 0 0
 2.0000 9.0000 0 0 0
1st output frame
5th output frame










