1 function [ H ] = create_pcm_from_submatrix( H_hat, k )
\r
4 tmp = zeros(32,size(H_hat,2));
\r
5 for i = 1:size(H_hat,2)
\r
6 tmp(:,i) = dec2binvec(H_hat(i), 32)';
\r
8 H_hat = tmp(1:find( sum(tmp,2)>0, 1, 'last'),:);
\r
12 [n m] = size(H_hat);
\r
14 H(i:(i+n-1),(m*(i-1)+1):(m*i)) = H_hat;
\r