• 大小: 18.32MB
    文件类型: .rar
    金币: 2
    下载: 3 次
    发布日期: 2023-08-02
  • 语言: Matlab
  • 标签: matlab  学习  

资源简介

simulation_and_software_radio_for_mobile_communications一书电子版和随书光盘附带源程序 matlab学习用

资源截图

代码片段和文件信息

function Z=Rayfadsim(FdTsNs)
%------------------------------------------------------------------------------------
% This function can be used to generate multiple uncorrelated Rayleigh 
% channel fading waveforms with accurate second-order statistics compared
% with those of Clark‘s reference model.
%
%   Fd: maximum Doppler frequency 
%   Ts: sampling period
%   Ns: number of samples
%   Z: (1Ns) complex fading vector with unit variancei.e.R_{ZZ}(\tau)=J_0(2\pi Fd \tau).
%  
%   Reference:
%   This simulator is built based on the following paper:
%   Yahong R.Zheng and Chengshan Xiao“Improved models for the generation of multiple
%   uncorrelated Rayleigh fading waveform“ IEEE communications Lettersvol.6June 2002
%
%   There are many ways to implement the 16 models provided by Zheng and Xiao.This one
%   is only an example and it is good for generating long sequence of the fading with
%   limited computer memory. Howeverthis example is not the most computationally efficient
%   one due to the “for-loop“ fact in Matlab.To remove the “for-loop“ will need more
%   computer memories.
%------------------------------------------------------------------------------------
%---[set up fading channel parameters]--------------------------------------------
M=16;N=4*M;
dop_gain=sqrt(1/M)*ones(1M); % This gain differs sqrt(2)
                              % from the paper to get Var(Z)=1.
theta=(2*rand-1)*pi;
doppler=Fd*cos(2*pi/N*[1:M]+theta/N-pi/N);
phi=(2*rand(M1)-1)*pi;
varphi=(2*rand(M1)-1)*pi;
state=zeros(M1);
dop_update=(2*pi*doppler*Ts).‘;
%---[generate fading channel samples]------------------------------------------------
Z=zeros(1Ns);
for (k=1:Ns)
    Z(k)=dop_gain*[cos(state+phi)+i*sin(state+varphi)];
    state=dop_update+state;
end


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3634  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\bpskev.m

     文件        658  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\comb.m

     文件        741  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\delay.m

     文件        671  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\disper.m

     文件       2166  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\fade.m

     文件        410  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\main.m

     文件        370  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\mvalue.m

     文件       3726  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\README-Chap2.txt

     文件       1742  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter2\sefade.m

     文件       2753  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\bpsk.m

     文件       4484  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\bpsk_fading.m

     文件        658  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\comb.m

     文件        562  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\compconv.m

     文件        684  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\compoversamp.m

     文件        743  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\delay.m

     文件       2167  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\fade.m

     文件       1052  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\gaussf.m

     文件       3387  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\gmsk.m

     文件       5109  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\gmsk_fading.m

     文件       1652  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\hrollfcoef.m

     文件       2933  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\msk.m

     文件       2967  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\msk2.m

     文件       4691  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\msk2_fading.m

     文件       4657  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\msk_fading.m

     文件       3182  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\oqpsk.m

     文件       4790  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\oqpsk_fading.m

     文件        497  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\oversamp.m

     文件        507  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\oversamp2.m

     文件       2780  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\qam16.m

     文件       4592  2005-05-29 19:16  simulation_and_software_radio_for_mobile_communications(Program)\Chapter3\qam16_fading.m

............此处省略80个文件信息

评论

共有 条评论