Convolutionally encode binary data
The ConvolutionalEncoder
object encodes a sequence
of binary input vectors to produce a sequence of binary output vectors.
To convolutionally encode a binary signal:
Define and set up your convolutional encoder object. See Construction.
Call step
to encode a sequence
of binary input vectors to produce a sequence of binary output vectors
according to the properties of comm.ConvolutionalEncoder
.
The behavior of step
is specific to each object in
the toolbox.
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
H = comm.ConvolutionalEncoder
creates a System
object, H
,
that convolutionally encodes binary data.
H = comm.ConvolutionalEncoder(
creates
a convolutional encoder object, Name
,Value
)H
, with each specified
property set to the specified value. You can specify additional name-value
pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).
H = comm.ConvolutionalEncoder(TRELLIS,
creates a convolutional encoder object, Name
,Value
)H
This object has the TrellisStructure
property set to TRELLIS
, and the other
specified properties set to the specified values.
|
Trellis structure of convolutional code Specify the trellis as a MATLAB structure that contains the
trellis description of the convolutional code. Use the |
|
Termination method of encoded frame Specify how the encoded frame is terminated as one of |
|
Enable encoder reset input Set this property to |
|
Delay output reset Set this property to |
|
Enable initial state input Set this property to |
|
Enable final state output Set this property to true to obtain the final state of the encoder via a |
|
Source of puncture pattern Specify the source of the puncture pattern as one of |
|
Puncture pattern vector Specify the puncture pattern used to puncture the encoded data as a column vector. The default
is |
reset | Reset states of the convolutional encoder object |
step | Convolutionally encode binary data |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
This object implements the algorithm, inputs, and outputs described on the Convolutional Encoder block reference page. The object properties correspond to the block parameters, except:
The operation mode Reset on nonzero input via port block parameter
corresponds to the ResetInputPort property. |