vals_02.png" alt=""> <pre class="codeinput"><span class="keyword">end</span>
</pre><p class="footer"><br>
      Published with MATLAB&reg; 7.12<br></p></div><!--
##### SOURCE BEGIN #####
%% Illustration of central vs high posterior density intervals
%
%%

% This file is from pmtk3.googlecode.com

function postDensityIntervals
f = @(x)gaussProb(x, 0, 1) + gaussProb(x, 6, 1);
domain = -4:0.001:10;
h = plot(domain , f(domain), '-r', 'LineWidth', 2.5);
axis([-4, 10, 0, 0.5]);
shade(f, 0, -1.5, 7.5, 'b', 0.005);