Filter löschen
Filter löschen

channel coding using convolutional code

2 Ansichten (letzte 30 Tage)
ayman osama
ayman osama am 15 Dez. 2012
clc;
clear;
N=20;
BITS=randint(1,N);
constlength=9;
traceback=5*constlength;
polynomial=[657 435];
trellis = poly2trellis(constlength,polynomial);
x=convenc(BITS,trellis);
SNR=0:2:30;
r1=(pskmod(x,2));
%for k=1:16
Rx_sequence= awgn(r1,0,'measured'); %signal with noise
SNR_of_level=0
r2=pskdemod(Rx_sequence,2);
error=xor(x,r2); %getting number of errors
number_errors=sum(error)
%end
l=vitdec(r2,trellis,traceback,'trunc','hard')
what's wrong

Antworten (1)

Image Analyst
Image Analyst am 15 Dez. 2012
Well, the failure to tell us what those functions (vitdec, etc.) are or what toolbox they can be found in is one thing that's wrong. Lack of sufficient comments is another. Not telling us what causes you to think there's something wrong is a third. There could be more....

Community Treasure Hunt

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

Start Hunting!

Translated by