View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
hard decision convolutional coding/decoding

3.3 | 3 ratings Rate this file 15 Downloads (last 30 days) File Size: 15.3 KB File ID: #14736 Version: 1.0
image thumbnail

hard decision convolutional coding/decoding


B Gremont (view profile)


21 Apr 2007 (Updated )

A few m-files showing CV encoding/Viterbi hamming distance decoding

| Watch this File

File Information

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

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (9)
30 May 2013 eng_mt

eng_mt (view profile)


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;


Comment only
08 Jul 2012 Kelvin O

@Alan Wang,
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.

Comment only
08 Mar 2012 B Gremont

B Gremont (view profile)

Download all my files. That way everything should work.

Comment only
24 Feb 2011 Rathod Ravi

how to run all files to get results

Comment only
23 Jul 2008 J C

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.

Comment only
01 Jul 2008 alan wang

No 'oct2bin' function!! Any one can help to figure out?

29 Apr 2008 jad gen

24 Feb 2008 gaurav sharma

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

Comment only
28 Sep 2007 J C


Contact us