📄 rx_ldpc_decode.m
字号:
function ldpcdec_output=rx_ldpc_decode(ldpcdec_input, MaxIter)
global rows;
global cols;
global h1i;
global h1j;
global rearranged_cols;
inlen=length(ldpcdec_input);
wordnum=fix(inlen/cols);
ldpcdec_output=zeros(1,wordnum*(cols-rows));
for wordcnt=1:wordnum
current_word=ldpcdec_input((wordcnt-1)*cols+1:(wordcnt-1)*cols+cols);
[vhat iter]=ldpcdec(current_word,h1i,h1j,rows,cols,MaxIter);
vhat1=vhat(rearranged_cols);
uhat=vhat1(1:cols-rows);
ldpcdec_output((wordcnt-1)*(cols-rows)+1:wordcnt*(cols-rows))=uhat;
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -