資源簡介
Gallager原版LDPC譯碼算法仿真程序,大佬的風格,供大家參考

代碼片段和文件信息
%This?code?is?to?generate?parity?check?matrix?of?LDPC?code?using?Gallager‘s?construction.
%Date:?November?23?2013.
clc
close?all
clear?all
n?=?24;?%?Number?of?columns
w_c?=?3;?%?Column?weight
w_r?=?6;?%?Row?weight
k?=?n*w_c/w_r;?%?Number?of?rows
H_sub?=?zeros(n/w_rn);?%?First?sub-matrix;?there?are?w_c?such?sub-matrices.
%%?Generation?of?Basic?Sub-matrix
for?i?=?1:n/w_r
for?j?=?(i-1)*w_r+1:i*w_r
H_sub(ij)?=?H_sub(ij)?+?1;
end
end
%%?Permutation?of?Basic?Sub-matrix
H_pre?=?H_sub;
for?t?=?2:w_c
x?=?randperm(n);
H_sub_perm?=?H_sub(:x);
H_pre?=?[H_pre?H_sub_perm];
end
H?=?zeros(kn);
for?p?=?1:w_c
?
H((p-1)*(n/w_r)+1:(p)*(n/w_r)1:n)?=?H((p-1)*(n/w_r)+1:(p)*(n/w_r)1:n)?+?H_pre(:(p-1)*n+1:p*n);
end
%?H?is?the?requires?parity?chack?matrix.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????791??2013-11-23?13:13??Gallager_construction_LDPC.m
?????文件????????1306??2014-02-12?14:39??license.txt
- 上一篇:《通信原理》復習要點
- 下一篇:海康FPGA工程師面試
評論
共有 條評論