level, num_window] = get_window_indices(wxl, w_linear_index)</a>
0113     accum_windows = 0;
0114     <span class="keyword">for</span> i=1:size(wxl,2)
0115         accum_windows = accum_windows + wxl(i);
0116         <span class="keyword">if</span> w_linear_index &lt;= accum_windows
0117            level = i;
0118            num_window = accum_windows - w_linear_index;
0119            <span class="keyword">break</span> 
0120         <span class="keyword">end</span>
0121     <span class="keyword">end</span>
