




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
(精品word)cdma的MATLAB仿真源程序 (精品word)cdma的MATLAB仿真源程序 (精品word)cdma的MATLAB仿真源程序 %************************************************************************************* %ThisfunctionpertainstotheadditionofAWGNwithmeanzeroand %parameter'variance'toaninputsignal。 % %AUTHOR:WenbinLuo % DATE:04/12/01 % % SYNOPSIS:y=awgn(x,var) %x—-—>inputsignal %var——->variance %y———>y=x+AWGN %*********************************************************************************** functiony=awgn(x,var) w=randn(1,length(x)); w=w—mean(w)*ones(size(w)); w=sqrt(var)*(w/std(w)); x=x(:); w=w(:); y=x+w; %************************************************************************************* %ThisfunctiondoestheDS—SSmodulation % %AUTHOR:WenbinLuo % DATE:04/28/01 % % SYNOPSIS:y=ds_mod(c,x) % c———〉usercode(columnvector) %x—-—〉inputsignal(rowvector) %y--—>tmp=c*x,y=tmp(:)(ds-ssmodulatedsignal,columnvector) %*********************************************************************************** functiony=ds_mod(c,x) tmp=c*x; y=tmp(:); %************************************************************************************* %Thisfunctiongeneratesrandom+1/-1sequencewithindependentidentically % distributedsymbols % %AUTHOR:WenbinLuo % DATE:04/28/01 % % SYNOPSIS:x=bingen(L) %L-——〉numberofrandomsymbols %*********************************************************************************** functionx=bingen(L) %generateLsymbolsrandomlywithvalue+1or-1 x=rand(1,L); x(find(x<0.5))=—1; x(find(x>=0。5))=1; %************************************************************************************* %ThisfunctiondoestheDS-SSmodulation % %AUTHOR:WenbinLuo % DATE:04/28/01 % % SYNOPSIS:x=ds_demod(c,y) % c--—>usercode(columnvector) %y—-->tmp=c*x,y=tmp(:)(ds—ssmodulatedsignal,columnvector) %x———>inputsignal(rowvector) %*********************************************************************************** functionx=ds_demod(c,y) tmp=reshape(y,length(c),length(y)/length(c)); tmp=tmp'; %xisacolumnvector x=tmp*c; %converttorowve

17****21
实名认证
内容提供者


最近下载