How to use comm.Convo​lutionalEn​coder and comm.Viterbi decoder in matlab

조회 수: 6 (최근 30일)
Jimmy cho
Jimmy cho 2020년 10월 14일
댓글: Jimmy cho 2020년 10월 15일
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] %I want to encode this message to encoder.
constlen = 7;
tblen=length(msg)
codegen = [171, 133]; % G1=171 , G2=133.
trellis = poly2trellis(constlen, codegen);
encodedData = comm.ConvolutionalEncoder(trellis);
DecodedData=comm.ViterbiDecoder(trellis,'InputFormat','TracebackDepth', tblen);
I got wrong Decoded Data (wrong output of decoder) and not the same input data (msg) , any help please? thanks alot and appreciated.
  댓글 수: 1
Jimmy cho
Jimmy cho 2020년 10월 15일
@Walter Roberson may you please help me here? thanks alot for any assistance !
Im stuck and don't know what do I do.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modulation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by