https://in.mathworks.com/help/comm/ref/poly2trellis.html
poly2trellis - Convert convolutional code polynomials to trellis description - MATLAB
This MATLAB function returns the trellis structure description corresponding to the conversion for a rate K / N feedforward encoder.
convertcodepolynomialstrellisdescription