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.

55 Responses to “Matlab RA code”

  1. Nyakec Says:

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

  2. Rob Says:

    Hello Nyakec,

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

    Take care, Rob.

  3. Amir Says:

    Thank you very much
    The files and Their comments were very useful.

  4. Richard Says:

    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.

  5. Rob Says:

    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.

  6. divya Says:

    can u send the code for matlab of ra

  7. Rob Says:

    Hi Divya,

    You can download the code from…
    http://users.ecs.soton.ac.uk/rm/wp-content/ra.zip

    Take care, Rob.

  8. kahsay kiross Says:

    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

  9. Md Shabbir Hasan Says:

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

  10. Rob Says:

    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.

  11. Vijeeshivak Says:

    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.??

  12. Rob Says:

    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.

  13. Vishal LTE Says:

    hi Rob,

    I am working on channel detection by physical channel of LTE.
    Can you help me by MATLAB code for same?

  14. Rob Says:

    Hi Vishal,

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

    Take care, Rob.

  15. Sangbit Says:

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

  16. Rob Says:

    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.

  17. John Says:

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

  18. Rob Says:

    Hello John,

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

    Take care, Rob.

  19. shriya Says:

    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

  20. Rob Says:

    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.

  21. SHIFA Says:

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

  22. SHIFA Says:

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

  23. Rob Says:

    Hello Shifa,

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

    Take care, Rob.

  24. daniel berhan Says:

    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?

  25. Rob Says:

    Hi Daniel,

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

    Take care, Rob.

  26. nuryusof Says:

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

  27. Rob Says:

    Hello Nuryusof,

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

    Take care, Rob.

  28. gavin Says:

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

  29. gavin Says:

    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!

  30. Rob Says:

    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.

  31. Zafar Says:

    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?

  32. Rob Says:

    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.

  33. Ay Says:

    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

  34. Rob Says:

    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.

  35. marie jenifer Says:

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

  36. Rob Says:

    Hello Marie,

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

    Take care, Rob.

  37. ndiaye Says:

    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

  38. Rob Says:

    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.

  39. ndiaye Says:

    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

  40. Rob Says:

    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.

  41. ndiaye Says:

    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

  42. Rob Says:

    Hello ndiaye,

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

    Take care, Rob.

  43. ndiaye Says:

    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

  44. Rob Says:

    Hi ndiaye,

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

    Take care, Rob.

  45. adnan Says:

    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

  46. Rob Says:

    Hello Adnan,

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

    Take care, Rob.

  47. mohamed Says:

    i needa matlap code for rate matching in lte

  48. Rob Says:

    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.

  49. Jaber Says:

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

  50. Rob Says:

    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.

  51. zahra Says:

    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

  52. Rob Says:

    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.

  53. Abir Says:

    Hi,
    I need the Matlab codes for the implementation of HARQ-IR and HARQ-CC.
    Can you help me, please ?
    Regards

  54. Hoang Hung Says:

    Hi guy
    I neet OFDM in communication UAV matlab code
    Can you help me? please

    Hung

  55. Rob Says:

    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.

Leave a Reply

Security Code: