• 大小: 4.85MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-02
  • 语言: Matlab
  • 标签: MATLAB  turbo码  

资源简介

MATLAB实现turbo编码,注释详尽,经调试运行成功。里面另附turbo编码的理论学习指导pdf文件,适合初学者作入门材料

资源截图

代码片段和文件信息

function [RC]=interleaving(x)
%****************************************************************
% 内容概述:3GPP标准交织器
% 创 建 人:朱殿荣/QQ:235347/MSN:njzdr@msn.com
% 单    位:南京邮电大学,通信工程系
% 创建时间:2005年9月11日
% 修改时间:
% 参考文献:
% 版权声明:任何人均可复制、传播、修改此文件,同时需保留原始版权信息。
%****************************************************************
%   K Number of bits input to Turbo code internal interleaver
%   R Number of rows of rectangular matrix
%   C Number of columns of rectangular matrix
%   p Prime number
%   v Primitive root


K=length(x);
%(1) Determine the number of rows of the rectangular matrix R
if K>=40 & K<=159
    R=5;
elseif (K>=160 & K<=200)|(K>=481 & K<=530)
    R=10;
else
    R=20;
end

%(2) Determine the prime number to be used in the intra-permutation p
%and the number of columns of rectangular matrix C
p_table=[7 11 13 17 19 23 29 31 37 41 43 ...
    47 53 59 61 67 71 73 79 83 89 97 ...
    101 103 107 109 113 127 131 137 139 149 151 ...
    157 163 167 173 179 181 191 193 197 199 211 ...
    223 227 229 233 239 241 251 257];
if K>=481 & K<=530
    p=53;
    C=p;
else
    %Find minimum prime number p from p_table
    ii=1;
    while (p_table(ii)+1)*R        ii=ii+1;
    end
    p=p_table(ii);
    %determine C 
    if K<=(p-1)*R
        C=p-1;
    elseif K>(p-1)*R & K<=R*p
        C=p;
    elseif K>R*p
        C=p+1;
    end
end
        
    


%p_table=[7    47   101   157   223;...
%    11    53   103   163   227;...
%    13    59   107   167   229;...
%    17    61   109   173   233;...
%    19    67   113   179   239;...
%    23    71   127   181   241;...
%    29    73   131   191   251;...
%    31    79   137   193   257;...
%    37    83   139   197     0;...
%    41    89   149   199     0;...
%    43    97   151   211     0];
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\14620x1000-zhang.mat

     文件        360  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\2次迭代.mat

     文件        643  2005-09-11 09:30  turbo码的研究\turbo码\cap_turbo\3GPP_interleaving.asv

     文件       1916  2005-09-11 09:56  turbo码的研究\turbo码\cap_turbo\3GPP_interleaving.m

     文件       8762  2005-07-29 11:21  turbo码的研究\turbo码\cap_turbo\cap算法-故障.png

     文件       6358  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\cap算法01.mat

     文件       8446  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\cap算法01.png

     文件       7803  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\cap算法02-2次迭代.png

     文件       6478  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\cap算法03.mat

     文件       8622  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\cap算法03.png

     文件       6437  2005-07-29 15:45  turbo码的研究\turbo码\cap_turbo\cap算法04.mat

     文件       7649  2005-07-29 09:53  turbo码的研究\turbo码\cap_turbo\cap算法04.png

     文件       7436  2005-07-29 11:45  turbo码的研究\turbo码\cap_turbo\cap算法05-2.png

     文件       7440  2005-07-29 13:53  turbo码的研究\turbo码\cap_turbo\cap算法05-3.png

     文件       7721  2005-07-29 15:58  turbo码的研究\turbo码\cap_turbo\cap算法05-4.png

     文件       8684  2005-07-30 15:22  turbo码的研究\turbo码\cap_turbo\cap算法05-5.png

     文件       8462  2005-08-03 19:13  turbo码的研究\turbo码\cap_turbo\cap算法05-5_1024bit_最大值16.png

     文件       7547  2005-07-31 19:11  turbo码的研究\turbo码\cap_turbo\cap算法05-5_64bit.png

     文件       7630  2005-08-01 10:03  turbo码的研究\turbo码\cap_turbo\cap算法05-5_64bit_最大值16.png

     文件      16210  2005-09-10 11:54  turbo码的研究\turbo码\cap_turbo\cap算法05-max_log_map与uncoded对比.png

     文件      11737  2005-09-10 11:55  turbo码的研究\turbo码\cap_turbo\cap算法05-max_log_map与uncoded对比_grid.png

     文件       6707  2005-07-29 18:27  turbo码的研究\turbo码\cap_turbo\cap算法05.mat

     文件       7262  2005-07-29 10:31  turbo码的研究\turbo码\cap_turbo\cap算法05.png

     文件       9893  2005-09-03 18:18  turbo码的研究\turbo码\cap_turbo\cap算法06-1024bit_Th_log_map算法.png

     文件      10606  2005-09-03 11:35  turbo码的研究\turbo码\cap_turbo\cap算法06-1024bit_WYF噪声_算FER.png

     文件      11243  2005-09-03 19:36  turbo码的研究\turbo码\cap_turbo\cap算法06-1024bit_WYF噪声_算FER_1236次迭代.png

     文件      11326  2005-09-03 21:27  turbo码的研究\turbo码\cap_turbo\cap算法06-1024bit_WYF噪声_算FER_1236次迭代_拟合图.png

     文件      11231  2005-09-02 20:49  turbo码的研究\turbo码\cap_turbo\cap算法06-1024bit楚宛琴噪声加法.png

     文件      14871  2005-09-06 10:03  turbo码的研究\turbo码\cap_turbo\cap算法06-3次迭代4种算法对比.png

     文件      22307  2005-09-06 10:03  turbo码的研究\turbo码\cap_turbo\cap算法06-3次迭代4种算法对比_grid.png

............此处省略261个文件信息

评论

共有 条评论