p;n,<br>
&nbsp;&nbsp;<span class=error>error</span>(<span class=quotes>'Wrong&nbsp;dimension&nbsp;of&nbsp;input&nbsp;linear&nbsp;classifier.'</span>);<br>
<span class=keyword>end</span><br>
<br>
quad_model.A&nbsp;=&nbsp;zeros(n,n,nfun);<br>
quad_model.B&nbsp;=&nbsp;lin_model.W(1:n,:);<br>
quad_model.C&nbsp;=&nbsp;lin_model.b(:)';<br>
<br>
<span class=keyword>for</span>&nbsp;k=1:nfun<br>
<br>
&nbsp;cnt&nbsp;=&nbsp;n;<br>
&nbsp;<span class=keyword>for</span>&nbsp;i=1:n,<br>
&nbsp;&nbsp;&nbsp;<span class=keywo