110,538
社区成员
发帖
与我相关
我的任务
分享
function testSingle()
clc
clear
load model.mat
%添加当前文件夹及其子文件夹到路径
currentFolder = pwd;
addpath(genpath(currentFolder));
% testFeature=input('请输入数据\n');
%测试
testFeature=[a,b,c,d,e];
[predictLabel ,~, ~] = svmpredict(double(-1),double(testFeature),model,'-b 1 -q');
result=num2str(predictLabel);
disp(['预测结果 ', result]);
end