Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Convert convolutional code polynomials to trellis description

`trellis = poly2trellis(ConstraintLength,CodeGenerator)`

`trellis = poly2trellis(ConstraintLength,CodeGenerator,FeedbackConnection)`

returns the trellis structure description corresponding to the conversion for a rate
`trellis`

= poly2trellis(`ConstraintLength`

,`CodeGenerator`

)*K* / *N* feedforward encoder.
*K* is the number of input bit streams to the encoder, and
*N* is the number of output connections.
`ConstraintLength`

specifies the delay for the input bit
streams to the encoder. `CodeGenerator`

specifies the output
connections for the input bit streams to the encoder.

The poly2trellis function accepts a polynomial description of a convolutional
encoder and returns the corresponding trellis structure description. This output can
be used as an input to the `convenc`

and `vitdec`

functions. It can also be used as a mask parameter value for
the Convolutional Encoder, Viterbi Decoder, and APP Decoder blocks.

When used with a feedback polynomial, poly2trellis makes a feedback connection to the input of the trellis.

returns the trellis structure description corresponding to the conversion for a rate
`trellis`

= poly2trellis(`ConstraintLength`

,`CodeGenerator`

,`FeedbackConnection`

)*K* / *N* feedback encoder.
*K* is the number of input bit streams to the encoder, and
*N* is the number of output connections.
`ConstraintLength`

specifies the delay for the input bit
streams to the encoder. `CodeGenerator`

specifies the output
connections for the input bit streams to the encoder.
`FeedbackConnection`

specifies the feedback connection for
each of the *K* input bit streams to the encoder.