⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wcl_qammod.m

📁 Hybrid DS-FH communication systems
💻 M
字号:
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%
% 	QAM Modulation.
%	
% 	Copyright(c) 2009-2015 HanYang University Wireless Communication Lab
% 
% 	Date		Name            Version         Description
%   ----------  -----------     -----------     ---------------------------
% 	2009.05.22	JINMINGSONG     v1.00           Create
% 	2009.05.23	JINMINGSONG     v1.01           Upgrade
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function [iout,qout]=WCL_qammod(paradata,para,nd,ml)

%****************** variables *************************
% paradata : input data (para-by-nd matrix)
% iout :output Ich data
% qout :output Qch data
% para   : Number of paralell channels
% nd : Number of data
% ml : Number of modulation levels
% (QPSK ->2  16QAM -> 4)
% *****************************************************

% The constellation power

k=sqrt(10);
iv=[-3 -1 3 1];
               
m2=ml/2;       
count2=0; 
   
for ii=1 : nd 
     
    isi = zeros(para,1);
    isq = zeros(para,1);

    for jj=1 : ml
         
         if jj <= m2
            isi = isi +2.^( m2- jj ).*paradata((1:para),count2+jj); 
			else 
            isq = isq +2.^( ml- jj ).*paradata((1:para),count2+jj); 
         end
    end
      
    iout((1:para),ii) = iv(isi+1)./k;
    qout((1:para),ii) =iv(isq+1)./k;        
       
    count2=count2+ml;
     
end

%******************** end of file ***************************

      
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -