5 H = create_pcm_from_submatrix(H_hat, 3)
8 % code = structure with all necesary components
9 code = create_code_from_submatrix(H_hat, 3);
11 x = double(rand(code.n,1)<0.5);
12 m = double(rand(sum(code.shift),1)<0.5);
13 [y min_cost] = dual_viterbi(code, x, w, m);
16 m = [m' ; calc_syndrome(code,y)']; m