Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use decoding of binary LDPC as in Elec. Letters by MacKay&Neal 13March1997

Status
Not open for further replies.

Hamid_net

Newbie level 1
Newbie level 1
Joined
May 1, 2017
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
12
Hello, I want need to exploit "LDPC as in Elec. Letters by MacKay&Neal 13March1997" which wrote by Igor Kozintsev.


SNR=[-10:5];
for i=1:length(SNR)
sigma = 10^((-SNR(i))/20); % AWGN noise deviation
x = (sign(randn(1,size(G,1)))+1)/2; % random bits
y = mod(x*G,2); % encoding

z = 2*y-1; % BPSK modulation
z=z + sigma*randn(1,size(G,2)); % AWGN transmission

f1=1./(1+exp(-2*z/sigma^2)); % likelihoods
f1 = (f1:)))'; % make it a row vector
f0=1-f1;
[z_hat, success, k] = ldpc_decode_LR(y,f0,f1,H);
x_hat = z_hat(size(G,2)+1-size(G,1):size(G,2));
x_hat = x_hat';
Error(i)=length(find(x-x_hat))
end

But I have a problem to create G and H matrixes. is there any suggestion how I can create G and H matrixes. Now I have predefined matrixes which I extracting from this code: https://www.mathworks.com/matlabcen...37-simulating-2-2-mimo-ldpc-base-band-systems
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top