About the Turbo Encoder/Decoder in Communication tool box

3 ビュー (過去 30 日間)
snowfish
snowfish 2015 年 11 月 26 日
回答済み: Mochan Yang 2019 年 11 月 15 日
I ran the simulation using the comm.TurboEncoder/comm.TurboDecoder in Communication tool box with code rate 1/3. But it always shows some error bits after decoding, which makes me confused. Could anybody help me with this issue? Thanks in advance!
I attached my codes below:
N = 10000; bits = randint(N,1); pattern = randperm(N); maxIter = 5;
hTurboEnc = comm.TurboEncoder('TrellisStructure', poly2trellis(4, [13 15], 13),'InterleaverIndicesSource','input port');
hTurboDec = comm.TurboDecoder('TrellisStructure', poly2trellis(4, [13 15], 13),'InterleaverIndicesSource','Input port', 'NumIterations', maxIter);
codedBits = step(hTurboEnc, bits, pattern);
decBits = step(hTurboDec, codedBits, pattern);
e = sum(xor(decBits,bits))

回答 (1 件)

Mochan Yang
Mochan Yang 2019 年 11 月 15 日
  • - codedBits ,,,,, Miuns (-) should be added?????

カテゴリ

Help Center および File ExchangeWireless Communications についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by