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....
channel coding using convolutional code
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!