decoding.m
来自「通信中LDPC编码的源程序」· M 代码 · 共 9 行
M
9 行
No=variance;
% assume the codeword c, the parity check matrix H and No are already loaded into the MATLAB memory
tx_waveform=bpsk(u,1); %amp= 1
rx_waveform=awgn(tx_waveform,No);
scale(1:length(u))=1; %No fading.
vhat=decode_ldpc(rx_waveform,No,1,h,scale) %since amp=1;
% assume we have the rearranged_cols array output by the rearrange_cols( ) function already loaded into MATLAB memory
uhat = extract_mesg(vhat,rearranged_cols);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?