legend(<span class="string">'posterior'</span>,<span class="string">'prior'</span>)
<span class="keyword">end</span>
</pre><img vspace="5" hspace="5" src="monodex_04.png" alt=""> <p>A point estimate of the model parameters can be calculated as the mean of the <tt>chain</tt>. Here we plot the fitted model using the posterior means of the parameters.</p><pre class="codeinput">x = linspace(0,400)';
figure(1)
hold <span class="string">on</span>
plot(x,modelfun(x,mean(chain)),<span class="string">'-k'</span>)
ho