clc
clear
close all
load model.mat
%添加当前文件夹及其子文件夹到路径
currentFolder = pwd;
addpath(genpath(currentFolder));
testFeature=input('请输入数据\n');
%测试
[predictLabel ,~, ~] = svmpredict(double(-1),double(testFeature),model,'-b 1 -q');
disp(['预测结果 ', num2str(predictLabel)]);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货