Hi guys !
Im really doing something simple but Im stuck because there's something Im missing and it would be appreciated if there's anyone to help me to succeed in implementing it.
I have a simple message [1 0 1] and I encoding it by convolutionalEncoder (k=7 , r=1/2) and I want to decode it by Viterbi decoder so I the output of Viterbi decoder(soft decision) should be as the input to the convolutional Encoder.
Im using comm. feature of matlab and Im stuck and not succeeding to decode the simple message, the code in matlab is:
msg=[ 1 0 1]
constlen = 7;
codegen = [171, 133];
trellis = poly2trellis(constlen, codegen);
encodedData = comm.ConvolutionalEncoder(trellis);
I got wrong Decoded Data (wrong output of decoder) and not the same input data (msg) , any help please? thanks alot and appreciated.