CVencode.m % function for CV encoding (arbitrary CV code)
VAharddecode1.m % function for Viterbi hard decision decoding
CVsimhard.m basic CV coding/decoding
BERcurve_CV_hard.m computes simulated BER curve
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;
use the following code instead of the 'oct2bin':
dec2base(oct2dec(x),N) where x is the input to be converted and N is the base to which you want to convert x to.
Download all my files. That way everything should work.
how to run all files to get results
Download his file "Impact of quantization on performance of convolutional codes(soft decesions)". Look in author index. I have provided oct2bin function in ratings section of that m-file that may help. Be careful with bin_len.
No 'oct2bin' function!! Any one can help to figure out?
Sorry but i am not getting the output.
May be i am not able to simulate the program.
i am getting an error of undefined function oct2bin.
please help me.
My project is on stake