Communications Blockset | ![]() ![]() |
Distribute input elements in output vector
Library
Sequence Operations, in Basic Comm Functions
Description
The Insert Zero block constructs an output vector by inserting zeros among the elements of the input vector. The input can be real or complex. The block determines where to place the zeros by using the Insert zero vector parameter. The Insert zero vector parameter is a binary vector whose elements are arranged so that:
If the input signal is sample-based, then the input vector length must equal the number of 1s in the Insert zero vector parameter.
To implement punctured coding using the Puncture and Insert Zero blocks, you should use the same vector for the Insert zero vector parameter in this block and for the Puncture vector parameter in the Puncture block.
Frame-Based Processing
If the input signal is frame-based, then both it and the Insert zero vector parameter must be column vectors. The number of 1s in the Insert zero vector parameter must divide the input vector length. If the input vector length is greater than the number of 1s in the Insert zero vector parameter, then the block repeats the insertion pattern until it has placed all input elements in the output vector.
Dialog Box
Examples
If the Insert zero vector parameter is the six-element vector [1,0,1,1,1,0]
, then the block inserts zeros after the first and last elements of each consecutive grouping of four input elements. It considers groups of four elements because the Insert zero vector parameter has four 1s.
The diagram below depicts the block's operation using this Insert zero vector parameter. Notice that the insertion pattern applies twice.
Compare this example with that on the reference page for the Puncture block.
See Also
![]() | Helical Interleaver | Integer-Input RS Encoder | ![]() |