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

📄 basemapping.m

📁 本人编写的ofdm系统中的em信道估计matlab仿真程序
💻 M
字号:
function dSource = baseMapping(bitSource,baseType)
   simulNUM = length(bitSource);
   switch baseType
       case  1
           dSource = 2*(bitSource-0.5); %BPSK方式调制到1和-1上
       case 2
           temp = 2*(reshape(bitSource,2,simulNUM/2)-0.5)'; 
           dSource = complex(temp(:,1) ,temp(:,2))/sqrt(2);   % ensure the average symbol power is 1
       case 3
           temp = reshape(bitSource,4,simulNUM/4)';
           x = 2*((0.5-temp(:,1)) .* (3-2*temp(:,3)));
           y = 2*((0.5-temp(:,2)) .* (3-2*temp(:,4)));
           avAmp = (sqrt(2) + sqrt(18) + 2*sqrt(10)) / 4;       % the average signal amplitude
           dSource = complex(x,y)/avAmp;
       otherwise
           error('There is a unsuported Mapping Type'); 
   end

⌨️ 快捷键说明

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