plz it is very Urgent in my thesis ,,,,
I need to use convoultional encoder with code rate =1/2 or 3/4 with puncturing and the decode the data using vitdec (soft-decision viterbi decoder) with NO Quantization.....
I am writing the code but I have mistake in vitdec stage...
can someone help me in correcting this code plz...
msg=rand(1,10)>0.5;% Random data
% Convoultional Encoder
trel = poly2trellis(6,[65,57]); % Define trellis
code = convenc(msg,trel); % Encode.
%decoding the msg using vitdec
tblen = 35; % Traceback length
decode = vitdec(code,trel,tblen,'cont','soft',3);
% bit error must be zeroo
ber= decode -code;
can you please explain what this program for?? i mean there is a lot of cdma coding like spreading and despreading or channel coding and decoding etc.
thank you so much and i like the simple of this program.