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

📄 spread.m

📁 此程序为DS-CDMA链路中加入基于子空间的PASTd多用户检测方法。系统中采用m序列阔频
💻 M
字号:

 

% Program 5-7
% spread.m
%
% Data spread function
%
% programmed by yixongshu,2006.8.9
function [iout,qout]=spread(idata,qdata,code1);
%
% code1: spread code sequence
%
switch nargin
    case{0,1}
        error('lack of input argument');
    case 2
        code1=qdata;
        qdata=idata;
end
[hn,vn]=size(idata);
[hc,vc]=size(code1);

if hn>hc
    error('lack of spread code sequences');
end

iout=zeros(hn,vn*vc);
qout=zeros(hn,vn*vc);

for ii=1:hn                       % spread the information correctly.
    iout(ii,:)=reshape(rot90(code1(ii,:),3)...
        *idata(ii,:),1,vn*vc);
    qout(ii,:)=reshape(rot90(code1(ii,:),3)...
        *qdata(ii,:),1,vn*vc);
end

% end of file.

⌨️ 快捷键说明

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