'k0'</span>,<span class="string">'var'</span>), k0=n; <span class="keyword">end</span>                <span class="comment">% k0 = true sparsity (generative)</span>
<span class="keyword">if</span> ~exist(<span class="string">'k'</span>,<span class="string">'var'</span>), k=max([2 fix(n/3)]); <span class="keyword">end</span>  <span class="comment">% k = desired sparsity (recovered)</span>
<span class="keyword">if</span> ~exist(<span class="string">'noise'</span>,<span class="string">'var'</span>), noise = 0.