⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frequency_interleaving.m

📁 一些关于调指和解调的小程序
💻 M
字号:
function out=frequency_interleaving(M,P,input)

%*****************************************************************************
%%% frequency interleaving function
%%% M : number of data branches
%%% P : number of spreading branches, equal to the spreading code length (SF)
%%% inout : modulated and spreaded signal matrix
%%% All the subcarriers are divided into P groups. In each group the spreading 
%%%   branches with same position number of different data branches are located
%%%   orderly.
%%% Example: For i-th(i=1,…,M) data branch,the t-th(t=1,…,P) spreading branch
%%%          is located in the i-th subcarrier of t-th group.That is, the 
%%%          (i-1)*P+t row vector of input matrix is should located in the 
%%%          (t-1)*M+i row of interleaved signal matrix.
%******************************************************************************


M=M;
P=P;
[A,B]=size(input);           %%% note A=M*P

tm=[];

for i=1:M
    for t=1:P
        tm((t-1)*M+i,:)=input((i-1)*P+t,:);
    end
end

out=tm;
clear M P A B tm

⌨️ 快捷键说明

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