📄 bits2symbols.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 + -