mcc -W 'dotnet:testSingle,Class1,0.0,private' -T link:lib -d E:\Code\testSingle\for_testing -v class{Class1:F:\matlab\bin\classify\testSingle.m}
Compiler version: 6.2 (R2016a)https://bbs.csdn.net/topics/
Dependency analysis by REQUIREMENTS.
[警告: Adding path "F:\matlab\bin\classify" to Compiler path instance.]
Parsing file "F:\matlab\bin\classify\testSingle.m"
(Referenced from: "Compiler Command Line").
The file
'F:\matlab\bin\classify\svmpredict.m'
is empty (zero bytes long).
This file cannot be added to the CTF archive because it will cause an error
when the application or library is run. Add valid content to this file if
your application or library requires this file.
Failed to build CTF file: 'E:\Code\testSingle\for_testing\testSingle.ctf'.
function testSingle(a,b,c,d,e)
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