X hits on this document

PDF document

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

258 views

0 shares

0 downloads

0 comments

93 / 107

end

w_k(1:Symbol_off)=[];

%constalletaion mapper

function const_mapped_data= constellation_mapper(data,w_k) % constellation_mapper(data,w_k) maps the data to appropriate subcarrier. %%support only full subchannelization

%global simulation_opts; global IEEE80216params;

num_blocks=size(data,1);% get the block size, in bits, that gets encoded const_mapped_data=zeros(num_blocks,IEEE80216params.Ofdm.Nfft);%initialize const_mapped_data to zero clear num_blocks;

switch (IEEE80216params.Modulation.Type)

case 'BPSK' modulated_data=pskmod(data,2);

case 'QPSK' symbol_size=2; scaling_fact= sqrt(1/2);

%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 %QPSK is implemented as 4 QAM %scaled modulated data modulated_data=scaling_fact *genqammod(mod_inp,IEEE80216params.Modulation.gray_map_qpsk); ;

case '16QAM'

symbol_size=4; scaling_fact= sqrt(1/10);

%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_16qam); ;

case '64QAM'

symbol_size=6; scaling_fact= sqrt(1/42);

82

Document info
Document views258
Page views264
Page last viewedSun Dec 04 08:44:12 UTC 2016
Pages107
Paragraphs1573
Words17747

Comments