📄 decode_ldpc_matlab.m
字号:
function [vhat,iteration]=decode_ldpc_matlab(rx_waveform,No,h,rows,cols,ind,r,c,max_iter)
% bit to check
% check to bit
% update APP LLR
% hard decision
% if valid codework, then exit
vhat(1,1:cols)=0; %length of decoded word = number of colums of H
s=struct('a',sparse(rows,cols,0),'b',sparse(rows,cols,0),'g',sparse(rows,cols,0));
% a:check to bit messages of previous iteration, b: current check to bit messages,
% g:updated codebit APP LLR
gamma_n=(4/No)*rx_waveform; %LLR=2*y/variance ; y=rx_waveform
s.g(ind)=gamma_n(c); %LLR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -