&nbsp;is&nbsp;possible
</span><br>
&nbsp;&nbsp;&nbsp;class=1;
<br>
<span class=keyword>elseif</span>&nbsp;p2==1,&nbsp;<span class=comment>%&nbsp;only&nbsp;the&nbsp;2nd&nbsp;class&nbsp;is&nbsp;possible
</span><br>
&nbsp;&nbsp;&nbsp;class=2;
<br>
<span class=keyword>elseif</span>&nbsp;pdfn(x,m1,c1)*p1&nbsp;&gt;&nbsp;pdfn(x,m2,c2)*p2,
<br>
&nbsp;&nbsp;&nbsp;class&nbsp;=1;
<br>
<span class=keyword>else</span>
<br>
&nbsp;&nbsp;&nbsp;class=2;
<br>
<span class=keyword>end</span>
<br>

<br>
<span class=defun_kw>fun