))./...<br>
&nbsp;&nbsp;&nbsp;&nbsp;(pcond(1,:)*gmm_model.Prior(1)+(pcond(2,:)*gmm_model.Prior(2)));<br>
<br>
hgmm&nbsp;=&nbsp;<span class=graph>plot</span>(fx,gmm_apost,<span class=quotes>'g'</span>);<br>
hcomp&nbsp;=&nbsp;pgauss(gmm_model);&nbsp;<br>
<br>
legend([hsigmoid,hgmm,hcomp],<span class=quotes>'P(y=1|f(x))&nbsp;ML-Sigmoid'</span>,...<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class=quotes>'P(y=1|f(x))&nbsp;ML-GMM'</span>,<span class=quotes>'P(f(x)|y=1)&nbsp;ML-GMM'</span>,<span class=quotes>'P(f(x)|y=2)&n