="codeinput"><span class="comment">%z=-10:.1:10;</span>
z=-10:0.5:10;
x=-10.005:.05:10;
<span class="keyword">for</span> k=1:length(z)
</pre><h2>laplace<a name="3"></a></h2><pre class="codeinput">    c=1;
    [temp outLap(k)]= min(.5*(z(k)-x).^2+c*abs(x));
</pre><h2>normal Jeffreys<a name="4"></a></h2><pre class="codeinput">    [temp outNJ(k)]=min(.5*(z(k)-x).^2+log(abs(x)));
</pre><h2>Hierarchical adaptive lasso<a name="5"></a></h2><pre class="codeinput">    bs = [0.01, 0.1,  1];
    a = 1;
    <span class