;&nbsp;psvm(model);</span><br>
<span class=help>%&nbsp;&nbsp;figure;&nbsp;ppatterns(trn);&nbsp;psvm(red_model);</span><br>
<span class=help>%</span><br>
<hr>
<span class=help1>%&nbsp;<span class=help1_field>Modifications:</span></span><br>
<span class=help1>%&nbsp;28-nov-2003,&nbsp;VF</span><br>
<br>
<hr>
dim=size(model.sv.X,1);<br>
nsv&nbsp;=&nbsp;model.nsv;<br>
<br>
S&nbsp;=&nbsp;zeros(dim,dim);<br>
<br>
<span class=keyword>for</span>&nbsp;i=1:dim,<br>
&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;j=i:d