bittosymbolstream.m

来自「这是一个完整的数据传输过程的matlab例程!」· M 代码 · 共 18 行

M
18
字号
function x = BitToSymbolStream(B,Nbits);% x = BitToSymbolStream(B,Nbits);%% MSB firstLb = length(B);if mod(Lb,Nbits)~=0,   error('Bitstream length is incompatible with symbol length');end;Lx = Lb/Nbits;x = zeros(1,Lx);for n = 1:Nbits,   x = x + 2^(Nbits-n)*B(n:Nbits:Lb); end;

⌨️ 快捷键说明

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