X hits on this document

PDF document

Performance Evaluation of WiMAX/IEEE 802.16 OFDM Physical Layer - page 100 / 107

316 views

0 shares

0 downloads

0 comments

100 / 107

ch_no= IEEE80216params.simOpts.TxDiv*IEEE80216params.simOpts.RxDiv; % number of antenna pairs

if(systime­time >=IEEE80216params.channel.Nyquist_time) counter=mod(counter,length(coeffs))+1; time=time+IEEE80216params.channel.Nyquist_time; end

% initalize the CIR with zeros CIR=zeros(ch_no,max(IEEE80216params.channel.conv_locs)); %generate CIR for i=1:length(IEEE80216params.channel.tau)

C I R ( : , I E E E 8 0 2 1 6 p a r a m s . c h a n n e l . c o n v _ l o c s ( i ) ) = C I R ( : , I E E E 8 0 2 1 6 p a r a m s . c h a n n e l . c o n v _ l o c s ( i ) ) + c o e f f s ( : , counter); end i ,

function paths_r=ch_fading(leng) %%%% ch_fading(leng): generates the fadding coefficients

global IEEE80216params;

ch_no= IEEE80216params.simOpts.TxDiv*IEEE80216params.simOpts.RxDiv; % number of antenna pairs

L=length(IEEE80216params.channel.P); % number of taps

%%% coeff. generation for j=1:ch_no

paths_r(j,:,:)=sqrt(1/2)*randn(L,leng)+j*randn(L,leng).*((sqrt(IEEE80216params.channel.variance))'*ones( 1,leng));

for i=1:L temp(1:leng)=paths_r(j,i,:); path=fftfilt(IEEE80216params.channel.filter(i,:),[temp zeros(1,IEEE80216params.simOpts.DoppTaps)]); paths_r(j,i,:)=path(1+IEEE80216params.simOpts.DoppTaps/2:end­ IEEE80216params.simOpts.DoppTaps/2); end end

%%%%% Correlation Matrix for i=1:ch_no for j=1:ch_no if (i~=j) correlation_matrix(i,j)=IEEE80216params.channel.AntCorlnFac; else correlation_matrix(i,j)=1; end end end

correlation_matrix=sqrtm(correlation_matrix);

% correlate according to correlation matrix

89

Document info
Document views316
Page views322
Page last viewedSat Dec 10 11:26:20 UTC 2016
Pages107
Paragraphs1573
Words17747

Comments