mctc_il.m

来自「OFDMA 物理层开发的matlab 源码.飞思卡尔提供.对物理层开发的工程师有」· M 代码 · 共 37 行

M
37
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Property of Freescale
%  Freescale Confidential Proprietary
%  Freescale Copyright (C) 2005 All rights reserved
%  ----------------------------------------------------------------------------
%  $RCSfile: mCTC_IL.m.rca $
%  $Revision: 1.1 $
%  $Date: Mon Jan 22 10:36:57 2007 $
%  Target: Matlab
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
%CTC_IL
% 8.4.9.2.3 CTC interleaver IEEE 802.16-2004 P.598-P.599
% Interleaved address for CTC interleaver

function [ interleaver_inputA , interleaver_inputB ] = mCTC_IL(BlockSize,L_total,x)

alpha = mTx_add_inter (BlockSize/2);

% Step.1:Switch alternate couples
for j = 1:L_total
    if (mod(j-1,2)==0)        % updated for std compliancy
        inputA(j) = x(1,2*j-1);% don't switch the couple
        inputB(j) = x(1,2*j);
    else
        inputA(j) = x(1,2*j);  % switch the couple
        inputB(j) = x(1,2*j-1);
    end
end

% Step.2:Pi(j)
for j = 1:L_total            % updated for std compliancy
    interleaver_inputA(j) = inputA(alpha(j)+1);
    interleaver_inputB(j) = inputB(alpha(j)+1);
end
%

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?