ss="string">' -c '</span>,num2str( basenum^X(i,j) ),<span class="string">' -g '</span>,num2str( basenum^Y(i,j) ),<span class="string">' -s 3'</span>];
        cg(i,j) = svmtrain(train_label, train, cmd);

        <span class="keyword">if</span> cg(i,j) &lt; mse
            mse = cg(i,j);
            bestc = basenum^X(i,j);
            bestg = basenum^Y(i,j);
        <span class="keyword">end</span>
        <span class="keyword">if</span> ( cg(i,j) == mse &amp;&amp; bestc &gt; basenum^X(i,j) )
            ms