]> AND Private Git Repository - canny.git/blob - stc/exp/ml_stc_linux_make_v1.0/matlab/STC matlab implementation/create_pcm_from_submatrix.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
9497d81d31fe9384e988172cba9741e68cc37682
[canny.git] / stc / exp / ml_stc_linux_make_v1.0 / matlab / STC matlab implementation / create_pcm_from_submatrix.m
1 function [ H ] = create_pcm_from_submatrix( H_hat, k )\r
2 \r
3 if size(H_hat,1)==1\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
7     end\r
8     H_hat = tmp(1:find( sum(tmp,2)>0, 1, 'last'),:);\r
9 end\r
10 \r
11 H = zeros(1);\r
12 [n m] = size(H_hat);\r
13 for i=1:k\r
14     H(i:(i+n-1),(m*(i-1)+1):(m*i)) = H_hat;\r
15 end\r
16 end\r