1 function draw_pcm( H_hat, k, grid_period )
\r
2 %DRAW_PCM draw parity check matrix in black and white
\r
4 % Tomas Filler (tomas.filler@binghamton.edu)
\r
5 % http://dde.binghamton.edu/filler
\r
7 %% parse input arguments
\r
12 H = create_pcm_from_submatrix(H_hat, k);
\r
24 for i=grid_period:grid_period:n
\r
25 line([0 m+1], i+[0.5 0.5], 'Color', 0*[1 1 1])
\r
27 for i=grid_period:grid_period:m
\r
28 line(i+[0.5 0.5], [0 n+1], 'Color', 0*[1 1 1])
\r
32 set(gca,'ydir','reverse');
\r