% Program 2-6
% fade.m
%
% This function generates frequency lecting fading
%
% Programmed by H.Harada
%
function[iout,qout,ramp,rcos,rsin]=fade(idata,qdata,itau,dlvl,th,n0,itn,n1,nsamp,tstp,fd,flat)
2012年12月英语四级作文%****************** variables *************************
% idata input Ich data
% qdata input Qch data
% iout output Ich data香港浸会大学研究生
广外美女老师
% qout output Qch data
% ramp : Amplitude contaminated by fading投诉信范文
% rcos : Cosine value contaminated by fading
% rsin : Cosine value contaminated by fading
% itau : Delay time for each multipath fading
% dlvl : Attenuation level for each multipath fading
% th : Initialized pha for each multipath fading
% n0 : Number of waves in order to generate each multipath fading
整理英文% itn : Fading counter for each multipath fading
% n1 : Number of summation for direct and delayed waves
% nsamp : Total number od symbols
% tstp : Mininum time resolution
% fd : Maxmum doppler frequency
公务员考试怎么缴费% flat flat fading or not northwestern university
% (1->flat (only amplitude is fluctuated),0->nomal(pha and amplitude are fluctutated)
%******************************************************
iout = zeros(1,nsamp);
qout = zeros(1,nsamp);
total_attn = sum(10 .^( -1.0 .* dlvl ./ 10.0));
for k = 1 : n1
atts = 10.^( -0.05 .* dlvl(k));
if dlvl(k) >= 40.0
atts = 0.0;
end
theta = th(k) .* pi ./ 180.0;
[itmp,qtmp] = delay ( idata , qdata , nsamp , itau(k));
this is how we do
salt lake city[itmp3,qtmp3,ramp,rcos,rsin] = fade (itmp,qtmp,nsamp,tstp,fd,n0(k),itn(k),flat);
definite
iout = iout + atts .* itmp3 ./ sqrt(total_attn);
qout = qout + atts .* qtmp3 ./ sqrt(total_attn);
end
% ************************end of file***********************************