User`s guide
Repeat
5-369
5Repeat
Purpose Resample an input at a higher rate by repeating values.
Library Signal Operations
Description The Repeat block upsamples each channel of the M
i
-by-N input to a rate 
L times higher than the input sample rate by repeating each consecutive input 
sample L times at the output. The integer L is specified by the 
Repetition 
count
 parameter. 
Sample-Based Operation
When the input is sample-based, the block treats each of the M∗N matrix 
elements as an independent channel, and upsamples each channel over time. 
The 
Frame-based mode parameter must be set to Maintain input frame size. 
The output sample rate is L times higher than the input sample rate 
(T
so
=T
si
/L), and the input and output sizes are identical.
Frame-Based Operation
When the input is frame-based, the block treats each of the N input columns as 
a frame containing M
i
 sequential time samples from an independent channel. 
The block upsamples each channel independently by repeating each row of the 
input matrix L times at the output. The 
Frame-based mode parameter 
determines how the block adjusts the rate at the output to accommodate the 
repeated rows. There are two available options:
•
Maintain input frame size
The block generates the output at the faster (upsampled) rate by using a 
proportionally shorter frame period at the output port than at the input port. 
For L repetitions of the input, the output frame period is L times shorter 
than the input frame period (T
fo
=T
fi
/L), but the input and output frame 
sizes are equal.
The model below shows a single-channel input with a frame period of 
1 second being upsampled through 4-times repetition to a frame period of 
0.25 seconds. The input and output frame sizes are identical.










