📄 mcds_cdma_comb_orc.m
字号:
function out=mcds_cdma_comb_orc(input,ss_code,h,P)
%*******************************************************
%%% Orthogonality recover combining
%%% only combining, no demodulation
%%% the input is P*Lc matrix
%%% ss_code : spreading code, row vector
%%% h : channel transmission function(h=y./x),and is a
%%% P*Lc matrix in accordance with input
%*******************************************************
Lc=length(input); %%% input is a row vector, spreading factor = P
K=Lc./P;
sig=reshape(input,P,[]); %%% sig is a P*K matrix,each column is a spreaded symbol
hh=reshape(h,P,[]);
for i=1:K
G=1./hh(:,i); %%% ideal
G=G.'; %%% row vector, 1*P
comb(i)=(ss_code.*G)*sig(:,i)./P;
end
out=comb; %%% combined signal sequence, 1*L vector
%%% demodulation then can be performed
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -