## Matlab RA code

This Matlab code lets you draw EXIT chart, iterative decoding trajectories and BER plots for a half-rate repeat accumulate code.

**main_EXIT.m** draws an EXIT chart for a half-rate repeat accumulate code.

**main_traj.m** draws iterative decoding trajectories for a half-rate repeat accumulate code.

**main_ber.m** draws a BER plot for a half-rate repeat accumulate code.

**conv_encoder.m** provides an encoder function for a unity-rate convolutional code.

**bcjr_decoder.m** provides a soft-in soft-out decoder function for a unity-rate convolutional code.

**ra_encoder.m** provides an encoder function for a half-rate repeat accumulate code.

**ra_decoder.m** provides an iterative decoder function for a half-rate repeat accumulate code.

**jac.m** provides a function for performing the exact, lookup-table-aided and approximate Jacobian logarithms.

**generate_llrs.m** provides a function for generating Gaussian distributed a priori LLRs.

**measure_mutual_information_histogram.m** measures the mutual information of some LLRs using the histogram method.

**measure_mutual_information_averaging.m** measures the mutual information of some LLRs using the averaging method.

You can download the Matlab code here.

Copyright © 2009 Robert G. Maunder. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

July 19th, 2012 at 12:13 pm

Hello,

Please I am looking for a chase algorithm code, can you get me one, preferably in MATLAB.

July 19th, 2012 at 4:31 pm

Hello Nyakec,

I’m afraid that I don’t have any Matlab code for the Chase algorithm…

Take care, Rob.

August 1st, 2012 at 12:24 pm

Thank you very much

The files and Their comments were very useful.

April 7th, 2013 at 1:50 pm

Hello,

I am currently working on BP algorithm for RA code, but my programming results is not correct. Do you have any reference or code using BP decoding?

Thank you.

April 7th, 2013 at 2:26 pm

Hello Richard,

BP decoding of an RA code uses a factor graph made of variable nodes and check nodes, like in an LDPC code. I have some Matlab code for variable and check node decoders at…

http://users.ecs.soton.ac.uk/rm/wp-content/LDPC.zip

You can read some discussion about this code at…

http://users.ecs.soton.ac.uk/rm/resources/matlabexit/#comment-8434

Take care, Rob.

August 13th, 2013 at 4:49 pm

can u send the code for matlab of ra

August 13th, 2013 at 4:54 pm

Hi Divya,

You can download the code from…

http://users.ecs.soton.ac.uk/rm/wp-content/ra.zip

Take care, Rob.

September 9th, 2013 at 6:33 am

hello there i am working on channel estimation techniques for lte

i am trying to implement using mmse for downlink. but i have difficulty in coding the whole downlink lte block. please if u have any sample code for downlink lte channel estimation technics using minimum mean square error.

please helpme

September 10th, 2013 at 5:34 am

I need a MATLAB code for LTE_advanced performance..please help

September 12th, 2013 at 3:03 am

Hi Shabbir,

You can get some Matlab code for the LTE Advanced turbo code from…

http://users.ecs.soton.ac.uk/rm/resources/matlabturbo/

Take care, Rob.

September 17th, 2013 at 5:13 am

hi rob,

I am working on LTE Advanced for coMP… I felt difficult in designing the code for CoMP with channel estimation. can you help me to provide any sample codes.??

September 17th, 2013 at 8:54 am

Hello Vijeeshivak,

I’m afraid that I don’t have any source code for CoMP, but I have some Matlab code for the LTE turbo code at…

http://users.ecs.soton.ac.uk/rm/resources/matlabturbo/

Take care, Rob.

January 24th, 2014 at 9:27 am

hi Rob,

I am working on channel detection by physical channel of LTE.

Can you help me by MATLAB code for same?

January 27th, 2014 at 3:27 pm

Hi Vishal,

I’m afraid that I don’t have any Matlab code for channel detection.

Take care, Rob.

March 29th, 2014 at 2:57 pm

Hi Rob,

Can you send me Matlab code for 3D turbo encoder and decoder?

April 1st, 2014 at 6:06 pm

Hello Sangbit,

I’m afraid that I don’t have any Matlab code for a 3D turbo encoder and decoder. However, you can convert my 2D turbo code into a 3D one using the schematics provided in Figures 1 and 2 of…

http://eprints.soton.ac.uk/271520/1/HybridArqComplexity_1.pdf

Take care, Rob.

April 6th, 2014 at 6:40 pm

Hi Rob….

I need some MATLAB codes for Carrier Aggregation in LTE-A or for Relay performance in LTE-A…

Thanks …

April 10th, 2014 at 7:20 am

Hello John,

I’m afraid that I don’t have any Matlab code for carrier aggregation or relaying in LTE.

Take care, Rob.

May 1st, 2014 at 1:37 pm

hi guys, i am working on the project of chase decoding of BCH codes. I am finding difficult in coding chase algorithm. if any one have code for chase algorithm please post.

thank you

May 1st, 2014 at 3:48 pm

Hi Shriya,

I’m afraid that I can’t help you because I don’t have any Matlab code for BCH codes.

Take care, Rob.

February 6th, 2015 at 6:04 pm

I need some MATLAB codes for Carrier Aggregation in LTE-A

February 6th, 2015 at 6:06 pm

i need matab code for doing a project named equivalent capacity analysis in lte advanced using carrier aggregation

February 9th, 2015 at 9:43 am

Hello Shifa,

I’m afraid that I don’t have any Matlab code for carrier aggregation or its capacity analysis.

Take care, Rob.

May 29th, 2015 at 10:48 am

i was working a project on LTE channel estimation , and i need a matlab code for LTE downlink MMSE channel estimator for MIMO case.Can you help me please?

June 3rd, 2015 at 9:25 am

Hi Daniel,

I’m afraid that I don’t have any Matlab code for channel estimation.

Take care, Rob.

October 31st, 2015 at 9:12 pm

hai rob. did u have code for power allocation in Jt-comp lte-A..i hope u can help me

November 1st, 2015 at 8:09 pm

Hello Nuryusof,

I’m afraid that I don’t have Matlab code for power allocation.

Take care, Rob.

March 30th, 2016 at 1:33 am

Hi,

Rob, I have a tiny question, are RA codes generally used as inner codes or outer codes?

March 30th, 2016 at 2:18 am

Hi,

Rob, sorry to interrupt you again, I wonder if you have the source code for drawing the FER plot for half-rate RA codes? Thanks!

March 31st, 2016 at 9:32 am

Hi Gavin,

RA codes are typically used in isolation of other codes. However, you could concatenate an outer joint source/channel code, or an inner demapper, for example.

My Matlab code on this page can be easily modified to draw the FER rather than the BER.

Take care, Rob.

April 19th, 2016 at 9:00 am

Hello Rob,

I am simulating a concatenated decoding scheme and am trying to plot the trajectory of EXIT chart. I am plotting the extrinsic information of inner decoder on the upper line and outer decoder on the lower line and trajectory is made between the extrinsic information of the two decoders.However, my EXIT chart trajectory does not seem similar to the ones already published as it does not follow the mutual information lines of the two decoders. Initially the trajectory remains well inside the lines and at the tunnel, the trajectory goes outside of the lines and later on it follows the lines much closely. Is this behavior ok or am I plotting the trajectory wrongly?

April 25th, 2016 at 10:17 am

Hi Zafar,

I would suggest that you should start by using only long frame lengths (e.g. 10000 bits). If the trajectory is still not matching, then I would compare the trajectory that you get by using the average method for measuring MI, with the trajectory that you get using the histogram method. If these don’t match, then it suggests that there is a bug in your code.

Take care, Rob.

May 16th, 2016 at 7:31 pm

Hi Rob,

While I was looking your code I realized that your code is for regular RA codes. Do you have an example code for the irregular repeat accumulate codes?

If you dont have any example for Irregular repeat accumulate codes which includes check nodes at the encoder and decoder, could you provide a flow?

Thanks in advance

May 19th, 2016 at 8:01 am

Hi Ay,

There are two ways of thinking about RA codes - one is to think of them as being similar to turbo codes, the other is to think of them as being similar to LDPC codes. My code thinks of them as being similar to turbo codes. But, irregular RA codes and check nodes require you to think of RA codes as being similar to LDPC codes. So I’m afraid that my code is probably not so useful to you. I’m afraid that I don’t have any code for the LDPC interpretation.

Take care, Rob.

August 1st, 2016 at 9:25 am

i was working a project on LTE channel estimation , and i need a matlab code for LTE downlink .Can you help me please?

August 1st, 2016 at 6:45 pm

Hello Marie,

I’m afraid that I don’t have any Matlab code for LTE channel estimation.

Take care, Rob.

August 9th, 2016 at 8:00 pm

BONJOUR,

je travaille sur l’allocation avancées des ressources dans les reseaux lte femtocells.

j’ai besoin de codes matlab basé en utilisant l’algorithme exp-rule (en se basant sur la therorie des jeux et la valeur de shapley) pour satisfaire les contraintes temps reels des flux Voip,video,CBR….

En ce moment je suis bloqué et j’ai vraiment besoin de votre aide.

Merci

August 9th, 2016 at 9:00 pm

Hello ndiaye,

I’m afraid that my French is not strong enough to help you with this. Can you you rephrase your question in English for me?

Take care, Rob.

August 10th, 2016 at 11:51 pm

Good evening,

I work on advanced resource allocation in networks LTE femtocells,

For that I have to base myself on game theory with the use of the Shapley value and bankruptcy games

I must ALSO optimize radio resources using a scheduler based virtual token.

ON uses EXP-Rule as scheduler that has been developed to support multi-media applications in adaptive modulation and coding.

I want the matlab code for simulation Search result with the standard exp-rule scheduler; exp-rule by using a virtual token mechanism; exp-rule combined with gains Shapley algorithm based on video streams, VoIP and CBR to estimate the flow rate, packet loss rate and the delay arriving packets

August 23rd, 2016 at 8:35 pm

Hello ndiaye,

I’m afraid that I haven’t worked on resource allocation, so I’m afraid that I can’t help you with this.

Take care, Rob.

August 29th, 2016 at 1:53 am

bonsoir ,

c”est pour avoir le code matlab afin d’obtenir les graphes qui sont sont obtenus dans le fichier ci-joint ..

http://www.miturralde.com/pdfs/paper-ieee-3.pdf

merci

August 29th, 2016 at 8:52 pm

Hello ndiaye,

Again, I’m afraid that I’m struggling with the French in your message.

Take care, Rob.

August 30th, 2016 at 1:14 am

Good evening,

may be this is the browser that made the transcript automatique.I just want to have the matlab code to have the graphs that are in the article are the link.

http://www.miturralde.com/pdfs/paper-ieee-3.pdf

August 31st, 2016 at 8:15 am

Hi ndiaye,

I’m afraid that I don’t have any Matlab code for resource allocation.

Take care, Rob.

February 18th, 2017 at 7:03 pm

HEY rOB

I am working on the burrow wheeler trnasform and i need the matlab code for the currow wheeler compression of image in matlab that is fast and has good compression ratio.

thanks

February 18th, 2017 at 8:56 pm

Hello Adnan,

I’m afraid that I don’t have any Matlab code for this.

Take care, Rob.

February 24th, 2017 at 11:54 pm

i needa matlap code for rate matching in lte

February 25th, 2017 at 10:33 pm

Hi Mohamed,

You can download my LTE rate matching code from…

http://users.ecs.soton.ac.uk/rm/wp-content/get_LTE_puncturer.m

This go with the turbo code and LTE interleaver from…

http://users.ecs.soton.ac.uk/rm/resources/matlabturbo/

http://users.ecs.soton.ac.uk/rm/wp-content/get_LTE_interleaver.m

Take care, Rob.

October 18th, 2017 at 9:17 am

Can anybody kindly share matlab code related to Cell Range Extension of LTE-A heterogeneous network. Any code related can help.

October 18th, 2017 at 8:53 pm

Hi Jaber,

I’m afraid that I don’t have any Matlab code related to Cell Range Extension of LTE-A heterogeneous networks. But if anybody else reading this can help, please feel free to post a link.

Take care, Rob.

November 16th, 2017 at 5:38 am

Hello

I am working on RA- LDPC for rate 1/3 and 1/4. Could pls share matlab code for repeat Accumulator - low density parity check matrix(RA-LDPC) of rate 1/3 and 1/4?

Thanks

November 17th, 2017 at 8:45 am

Hi Zahra,

I’m afraid that my Matlab code treats the RA code like a convolutional code, rather than like an LDPC code. I don’t have any Matlab code for the LDPC approach.

Take care, Rob.

December 2nd, 2017 at 2:53 pm

Hi,

I need the Matlab codes for the implementation of HARQ-IR and HARQ-CC.

Can you help me, please ?

Regards

December 5th, 2017 at 10:49 am

Hi guy

I neet OFDM in communication UAV matlab code

Can you help me? please

Hung

December 13th, 2017 at 8:24 pm

Hello Abir and Hoang,

I’m afraid that I don’t have Matlab codes for HARQ or OFDM.

Abir - you could implement both types of HARQ using my turbo code Matlab at…

http://users.ecs.soton.ac.uk/rm/resources/matlabturbo/

Take care, Rob.