X hits on this document

PDF document

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

235 views

0 shares

0 downloads

0 comments

94 / 107

%convert the symbol into [0...M­1] for i=1:symbol_size:size(data,2)

m o d _ i n p ( : , l o o r ( i / s y m b o l _ s i z e ) + 1 ) = b i 2 d e ( d a t a ( : , i : i + s y m b o l _ s i z e ­ 1 ) , ' l e f t ­ m s b ' ) end ;

%scaled modulated data modulated_data=scaling_fact *genqammod(mod_inp,IEEE80216params.Modulation.gray_map_64qam);

end

% place the modulated data into data subcarriers c o n s t _ m a p p e d _ d a t a ( : , I E E E 8 0 2 1 6 p a r a m s . M a p . D a t a S u b C a r s ) = m o d u l a t e d _ d a t a ( : , 1 : e n d ) ;

clear data; clear modulated_data;

%fill in the pilot subcarriers if (IEEE80216params.Link.direction=='Dlink') const_mapped_data(:,41)=complex(1­2*w_k,0); const_mapped_data(:,91)=complex(1­2*w_k,0); const_mapped_data(:,192)=complex(1­2*w_k,0); const_mapped_data(:,217)=complex(1­2*w_k,0);

const_mapped_data(:,66)=complex(1­2*(1­w_k),0); const_mapped_data(:,116)=complex(1­2*(1­w_k),0); const_mapped_data(:,142)=complex(1­2*(1­w_k),0); const_mapped_data(:,167)=complex(1­2*(1­w_k),0); else %Ulink const_mapped_data(:,41)=complex(1­2*w_k,0); const_mapped_data(:,91)=complex(1­2*w_k,0); const_mapped_data(:,192)=complex(1­2*w_k,0); const_mapped_data(:,217)=complex(1­2*w_k,0); const_mapped_data(:,142)=complex(1­2*w_k,0); const_mapped_data(:,167)=complex(1­2*w_k,0);

const_mapped_data(:,66)=complex(1­2*(1­w_k),0); const_mapped_data(:,116)=complex(1­2*(1­w_k),0);

end

% ofdm modulator

f u n c t i o n t i m e d o m a i n _ d a t a _ v e c = o f d m _ m o d u l a t o r ( d a t a )

%global simulation_opts; global IEEE80216params;

t i m e d o m a i n _ d a t a = i f f t ( d a t a . ' ) ;

83

Document info
Document views235
Page views241
Page last viewedFri Dec 02 20:45:40 UTC 2016
Pages107
Paragraphs1573
Words17747

Comments