File Exchange

image thumbnail

hard decision convolutional coding/decoding

version 1.0 (15.3 KB) by

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

3.33333
3 Ratings

22 Downloads

Updated

View License

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
UTILITY FUNCTIONS
getcodeparameters
bin2deci
deci2bin

Comments and Ratings (9)

eng_mt

eng_mt (view profile)

Hello,,,,

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;

==============================
thanks

lulu_cpu@yahoo.com

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.

B Gremont

B Gremont (view profile)

Download all my files. That way everything should work.

Rathod Ravi

how to run all files to get results

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.

alan wang

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

jad gen

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

J C

Good

MATLAB Release
MATLAB 7.4 (R2007a)

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

» Watch video