1     <span class="keyword">case</span> 5
0052         punct_pat = logical([1 1 1 0 0 1 1 0 0 1]);
0053         f = 2*5/6;
0054     <span class="keyword">otherwise</span>
0055         punct_pat = true;
0056         f = 2*1/2;
0057 <span class="keyword">end</span>
0058 
0059 <span class="comment">% Input codeword length</span>
0060 llr_len = size(llr_in, 1);
0061 
0062 <span class="comment">% Repeat depuncturing pattern as many times as needed to cover whole output codeword</span>
0063 idx = repmat(punct_pat