File Exchange

image thumbnail

Turbo Code Simulation

version 1.3 (86.7 KB) by

Generate a turbo code, and decode the code iteratively using MAP detectors.

25 Ratings



View License

Generate a turbo code, and decode the code iteratively using MAP detectors.
Punctured and unpunctured turbo codes are implemented. Probability of bit error plots can be obtained by executing MATLAB scripts.

Comments and Ratings (38)

Michal Piech

Very well coded simulation.

Sinh Viên 3E


peng (view profile)


Anshul vats

its not working


xiang (view profile)



lin (view profile)



R (view profile)

In which matlab version should this simulink be executed???
Im not getting any output. Proxy buffer is the error that appears. then something else

Hieu Luong

good, but can anyone help be that I get a model but with viterbi decoder not with App decoder

please tell me joe to plot BER plot, i have tried with bertool but it's not working

noor gul

can anyone help me that how i can use the same modle as shown here for images and video representation. if so please help me to solve this problem


Yanbo Wu

The decision should use the sum of both app-decoder's L(u) output. The subsystem in the mdl file need to be modified accroding the Fig.1 in the reference paper "A Soft-Input Soft-Output Maximum A Posterior (MAP) Module to Decode Parallel and Serial Concatenated Codes," . I have tried this the ber is lower when modified.

Hammad Dilpazir

I have Tried that script, initially you need to enter Var value


Elisa Mo

Thanks for your program. However, using the punctured code model, I couldn't obtain the same results as those in Berrou and Glavieux's paper. I wonder if anyone else shared the same problem.

hadj mostefa

Hassanen Osama

Dear In Soo Ahn I have run your turbo code and found that it work only for sample time =1 and when i want to connect it to an OFDM system with soft decision LLR QAM it dosen't work. can you explean to me how the time for number of Iteration is considered. I need your help in this . Best Regards ...

Heri Firmansyah

shahzad bhatti

Could you please tell me how is this terminating the trellis ?

zine lela

kiran koona

I also want to work on this it's good but I need your help

Jaber Murad

This models is excellent,
I have done my simulation using this code, this is great code.
You have to try open it several times, from simulink window, and see the command window to adjust the preference for this code.
Excellent code.

Mir Chad

Seems to be good, but I tried to open it, I have errors appearing in the workspace, maybe there is some library missing.
please resubmit your model

Brown Alex

Please give more updates and documentations on the simulink model

John Smith

The code does not work

Engineer s

Then submit your code

ruchi chaudhary


Esam Obiedat

I have better model, and it works

romain mavudila

jorge luix

no comment... too much time wasted

Santosh Shah

Dear In Soo Ahn

I have run your turbo code and found that the there is mismatch the sampling time between input and output binary data. just you have to check by using sample color. and BER tool from tool box. I am also trying to implement UMTS RSC 1/2 rate turbo code. could you please help me to find out your algorithm, which you have used.
thanking you.

Hussam Aburas

its not working

Sakeena Sharyar

it is not working how u can say its easy to work

Bader Alkandari

Very Intuitive and easy to use. The model assumes baseband modulation and an AWGN channel. Pretty handy. It shows the performance of Turbo codes under different channel conditions. Overall an excellent model and can be integrated into other models easily.



Update the SIMULINK models by replacing obsolete blocks. Increase the interleaver size to obtain much lower probability of bit error characteristics.


The turbo code can be run under different Eb/No's by executing the turbo_code_multiple_run_driver.

Expanded the current model to handle puuctured turbo codes.

a minor inconsistency fix to improve the error performance.

MATLAB Release
MATLAB 7.12 (R2011a)

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

» Watch video