2 Star 7 Fork 1

XuChonghhh233 / XC_5g_ldpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ldpcEncode.m 486 Bytes
一键复制 编辑 原始数据 按行查看 历史
function [ encVec ] = ldpcEncode( bitVec, LDPC )
%LDPCENCODE Encode the input bit vector using the LDPC code specified in
% struct 'LDPC'.
% Check if input has correct size
assert(size(bitVec,2)==LDPC.numInfBits, 'Error: The given input vector has length %d, correct input length is %d!', length(bitVec), LDPC.numInfBits)
% Encode
encVec = mod(bitVec * LDPC.G, 2); % Note: This is very inefficient.
% Puncturing of 2*Z first systematic bits
encVec = encVec(:,2*LDPC.Z+1:end);
end
1
https://gitee.com/xuchonghhh233/XC_5g_ldpc.git
git@gitee.com:xuchonghhh233/XC_5g_ldpc.git
xuchonghhh233
XC_5g_ldpc
XC_5g_ldpc
master

搜索帮助