File Exchange

image thumbnail

Turbo Code Simulation

version (86.7 KB) by In Soo Ahn
Generate a turbo code, and decode the code iteratively using MAP detectors.


Updated 25 Aug 2011

View Version History

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.

Cite As

In Soo Ahn (2021). Turbo Code Simulation (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (39)

ashaq niaz

i hAVE question why we have same ber for different turbo codes

Michal Piech

Very well coded simulation.

Sinh Viên 3E



Saurabh Choudhary


Anshul vats

its not working






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

Lobna Ben Elbey

Lobna Ben Elbey

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

ajay kumar saini

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

Jaroslav Rumanek


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.

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!