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

📄 bits2symbols.m

📁 APSK仿真程序
💻 M
字号:
%This function maps the input Bits to the Symbols
%Input Parameters:-
%Bits : Input Bits

%Output Parameters:-
%Symbols: Symbols for the input Bits

function Symbols = Bits2Symbols(Bits)
%Paramters Initialization
Parameter;
Initialconstellation;

Symbols = [];
SymbCount = round(length(Bits)/BitsPerSymb);
SymbolBits = reshape(Bits, BitsPerSymb, SymbCount)';

for iSymb = 1 : SymbCount
    SymbValue = bi2de([SymbolBits(iSymb, :)], 'left-msb');
    CurSymbol = Constellation_Table(SymbValue+1);
    Symbols = [Symbols, CurSymbol];
end

⌨️ 快捷键说明

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