ide the size of each bin by norm and plot<a name="4"></a></h2><h2>the normalized histogram.<a name="5"></a></h2><pre class="codeinput"><span class="keyword">function</span> plotHist(data,nbins,norm)
    hold <span class="string">on</span>;
    [counts, locations] = hist(data,nbins);
    sCounts = counts ./ norm;
    bar(locations,sCounts);
<span class="keyword">end</span>
</pre><pre class="codeinput"><span class="keyword">function</span> plotPDFs(data)
    Xbar = mean(data);
    sigma = std(data);
    gauss