📄 spread.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 + -