一种QC-LDPC码对突发噪声抑制的MATLAB仿真

对博客BPSK调制下(2,1,3)、(2,1,6)卷积码与QC-LDPC码译码性能和抑制突发噪声性能对比(MATLAB实现)

LDPC码对突发噪声的抑制性能作一个补充仿真,结果如下
在这里插入图片描述
代码如下:

% LDPC code
clear; close all; clc
Nb = 203000; % number of bits
SNRdB = 2:1:10;

bit_ori = randi([0,1],1,Nb); 
P0 = eye(100); % standard permutation matrix
P = [P0(:,100) P0(:,1:99)]; 
P_1 = zeros(100); % P to the power of -1
Hb = [0 1 0 -1;2 1 2 1]; % proto matrix
P2 = P*P;
H = [P0 P P0 P_1;P2 P P2 P]; % low density parity check matrix
% spy(H);

%  H1=[1 0 0 0 1 0 1 0 0 0 0 0;
%      0 1 0 0 0 1 0 1 0 0 0 0;
%      0 0 1 1 0 0 0 0 1 0 0 0;
%      0 0 1 0 1 0 0 0 1 0 1 0;
%    

猜你喜欢

转载自blog.csdn.net/wlwdecs_dn/article/details/113774690