?? 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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -