&#36873;&#25321;&#32467;&#26524;'</span>);
str = sprintf( <span class="string">'SVM parameters for R:Best Cross Validation MSE = %g Best c = %g Best g = %g'</span>,bestmse,bestc,bestg);
disp(str);

<span class="comment">% &#35757;&#32451;SVM</span>
cmd = [<span class="string">'-c '</span>, num2str(bestc), <span class="string">' -g '</span>, num2str(bestg) , <span class="string">' -s 3 -p 0.1'</span>];
r_model = svmtrain(r, tsx, cmd);

<span class="comment">% &#39044;&#27979;</span>
[r_predict,r_mse] = svmpr