eyword">for</span> i = 1:nCases
   h = hist(trueWeights(:,i),xr);
   Pw = Pw + h/nCases;
<span class="keyword">end</span>
figure;
subplot(2,1,1); bar(xr, Pw);
subplot(2,1,2); bar(xr, Pw);
ylim = get(gca, <span class="string">'ylim'</span>);
axis([min(xr) max(xr) 0 ylim(2)*0.1])
</pre><img vspace="5" hspace="5" src="sparseLinRegBabackDemo_01.png" alt=""> <img vspace="5" hspace="5" src="sparseLinRegBabackDemo_02.png" alt=""> <img vspace="5" hspace="5" src="sparseLinRegBabackDemo_03.png" alt=""> <p class="foot