interleaver.m
来自「The result is an IS-95CDMA forward link 」· M 代码 · 共 28 行
M
28 行
function int_matrix=Interleaver(conv)
%This is the Block Interleaver.
%The Block Interleaver is a 24 rows by 16 columns array matrix
%It reads in a data bit stream row-by-row then output column-by-column
%Define array matrix
int_matrix1=zeros([24,16]);
nrows=24;
ncolumns=16;
%Fill in the empty matrix row by row,eventually
for nr=1:nrows
for nc=1:ncolumns
int_matrix1(nr,nc)=conv(nc+((nr-1)*ncolumns));
end
end
%output data bits column-by-column
int_matrix=int_matrix1(:)';
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?