Hey,

I need some help creating a convolution coder for my school assignment.

1. One option to do this is, to create a model (example cc_model.mdl has 2 inputs, 4 outputs and a 1 memory block). I would need to create a working model CC (4; 3, 8) with **3 inputs**, 4 outputs and a 1 memory block (8 is the constraint length). And then incorporate that to the matlab script which I have.

Code:

· x2 = reshape(x,length(x)/K,K);

· gen=sim2gen('cc_model');

· [tran_func,code_param]=oct2gen(gen);

· x=encode(x2,N,K,'convol',gen);

· y=reshape(y,length(y)/N,N);

· msg_dec=viterbi(y,gen);

2. Another way to go about this is using the convolution coder block in simulink and use the poly2trellis command, but I have no idea what the parameters should be.

Code:

poly2trellis(?, [? ?])

I'm pretty new to matlab so help with either one of these options would be greatly appreciated.