hmatrix =
        V0    V1    V2    V3    V4    V5    V6    V7    V8    V9    V10 V11
     C0 0     0     1     1     0     0     0     1     0     1     0     0  V2+V3+V7+V9=0
     C1 1     0     0     0     1     0     0     0     1     0     1     0  V0+V4+V8+V10=0
     C2 0     1     0     0     0     1     1     0     0     0     1     0  V1+V5+V6+V10=0
     C3 0     0     1     0     1     0     1     0     0     0     0     1  V2+V4+V6+V11=0
     C4 1     0     0     0     0     1     0     1     0     0     0     1  V0+V5+V7+V11=0
     C5 0     1     0     1     0     0     0     0     1     1     0     0  V1+V3+V8+V9=0 

Encoded data=
        1     0     1     0     1     0     1     0     1     1     1     1
BPSK moulated=
       -1     1    -1     1    -1     1    -1     1    -1    -1    -1    -1

lambda (Received data from channel)= 
       -9.1  4.9   -3.2   3.6  -1.4   3.1  0.3   1.6   -6.1  -2.5  -7.8  -6.8
                                          -----

%--------------------------------------------------------------------------
% MinSum Decoding
%--------------------------------------------------------------------------
Iteration 1
%--------
beta (initialized with lambda)=

         0         0   -3.2000    3.6000         0         0         0    1.6000         0   -2.5000         0         0
   -9.1000         0         0         0   -1.4000         0         0         0   -6.1000         0   -7.8000         0
         0    4.9000         0         0         0    3.1000    0.3000         0         0         0   -7.8000         0
         0         0   -3.2000         0   -1.4000         0    0.3000         0         0         0         0   -6.8000
   -9.1000         0         0         0         0    3.1000         0    1.6000         0         0         0   -6.8000
         0    4.9000         0    3.6000         0         0         0         0   -6.1000   -2.5000         0         0
%---------------------------------         
1) Row processing: alpha=sign*min
alpha =
         0         0   -1.6000    1.6000         0         0         0    2.5000         0   -1.6000         0         0
   -1.4000         0         0         0   -6.1000         0         0         0   -1.4000         0   -1.4000         0
         0   -0.3000         0         0         0   -0.3000   -3.1000         0         0         0    0.3000         0
         0         0    0.3000         0    0.3000         0   -1.4000         0         0         0         0    0.3000
   -1.6000         0         0         0         0    1.6000         0    3.1000         0         0         0   -1.6000
         0    2.5000         0    2.5000         0         0         0         0   -2.5000   -3.6000         0         0

%---------------------------------
2) Column processing beta =lambda+sum(alpha)(except itself)
beta=
         0         0   -2.9000    6.1000         0         0         0    4.7000         0   -6.1000         0         0
  -10.7000         0         0         0   -1.1000         0         0         0   -8.6000         0   -7.5000         0
         0    7.4000         0         0         0    4.7000   -1.1000         0         0         0   -9.2000         0
         0         0   -4.8000         0   -7.5000         0   -2.8000         0         0         0         0   -8.4000
  -10.5000         0         0         0         0    2.8000         0    4.1000         0         0         0   -6.5000
         0    4.6000         0    5.2000         0         0         0         0   -7.5000   -4.1000         0         0

%---------------------------------
3)Code estimatation and Syndrome check
estimated code=lambda+sum(alpha)
  -12.1000    7.1000   -4.5000    7.7000   -7.2000    4.4000   -4.2000    7.2000  -10.0000   -7.7000   -8.9000   -8.1000
Harddecision=
    1          0          1         0         1         0         1         0        1         1          1         1

