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

📄 qpsk_modulate.asv

📁 PFDM 仿真程序
💻 ASV
字号:
function mod_symbols = QPSK_modulate(x)
% function y = modulate(x,b,e)
%
%    mod_symbols - modulated output, in the form of a row vector
%    x - a vector of input bits, for all the subcarriers (row vector)

mod_symbols=[];


 % Angle [pi/4 3*pi/4 -3*pi/4 -pi/4] corresponds to 
 % Gray code vector [00 10 11 01], respectively.
   table=exp(j*[-3/4*pi 3/4*pi 1/4*pi -1/4*pi]);  % generates QPSK symbols
   table=table([0 1 3 2]+1); % Gray code mapping pattern for QPSK symbols
   inp=reshape(bits_in,2,full_len/2);
   mod_symbols=table([2 1]*inp+1);  % maps transmitted bits into QPSK symbols

⌨️ 快捷键说明

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