nt">% &#25171;&#21360;&#27979;&#35797;&#38598;&#20998;&#31867;&#20934;&#30830;&#29575;</span>
total = length(test_wine_labels);
right = sum(predict_label == test_wine_labels);
disp(<span class="string">'&#25171;&#21360;&#27979;&#35797;&#38598;&#20998;&#31867;&#20934;&#30830;&#29575;'</span>);
str = sprintf( <span class="string">'Accuracy = %g%% (%d/%d)'</span>,accuracy(1),right,total);
disp(str);
</pre><pre class="codeoutput">Accuracy = 98.8764% (88/89) (classification)
&#25171;&#21360;&#27979;&#35797;&#385