frequency_deinterleaving.m

来自「一些关于调指和解调的小程序」· M 代码 · 共 26 行

M
26
字号
function out=frequency_deinterleaving(M,P,input)

%**********************************************************************************
%%% frequency deinterleaving function
%%% M : number of data branches
%%% P : number of spreading branches, equal to the spreading code length (SF)
%%% inout : modulated and spreaded signal matrix
%%% This function preform the action reverse to the frequency_interleaving function
%%% Example: The (t-1)*M+i row vector of input signal matrix is should be located 
%%%          in the (i-1)*P+t row of deinterleaved signal matrix.(i=1,…,M)(t=1,…,P)
%***********************************************************************************


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

tm=[];

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

⌨️ 快捷键说明

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