📄 mctc_il.m
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -