channel coding using convolutional code
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Image Analyst
el 15 de Dic. de 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....
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!