在打包matlab变为dll的时候报错,要怎么改?

qq_32320747 2018-05-22 05:04:42
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
...全文
948 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zyy1111111 2018-06-04
  • 打赏
  • 举报
回复
换个文件夹试试

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧