bit2esgsymbolmapping.m
来自「安捷仑的数字调制信号发生器E4438用于很多通信系统的开发过程中。本代码可以用于」· M 代码 · 共 22 行
M
22 行
function[symbol] = bit2ESGsymbolmapping(input_bits)
% BIT2SYMBOL MAPPING
output_sym = [];
for index = 1:2:length(input_bits)
if input_bits(index) == 0
if input_bits(index+1) == 0
output_sym(0.5*(index+1)) = 0.06;%1; %00
else
output_sym(0.5*(index+1)) = 0.18;%3; %01
end
else %input_bits = 1
if input_bits(index+1) == 0
output_sym(0.5*(index+1)) = -0.06;%-1 %10
else
output_sym(0.5*(index+1)) = -0.18;%-3; %11
end
end
end
symbol = [output_sym]; %convert to the DSP levels
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?