为何调用matlab自带的svmtrain失败。

[
function [ multiSVMstruct ] =multiSVMtrain4( traindata,nclass,gamma,c)
%多类别的SVM训练器
for i=1:nclass-1
for j=i+1:nclass
X=[traindata(5*(i-1)+1:5*i,:);traindata(5*(j-1)+1:5*j,:)];
Y=[ones(5,1);zeros(5,1)];
multiSVMstruct{i}{j}=svmtrain(X,Y,'Kernel_Function',@(X,Y) kfun_rbf(X,Y,gamma),'boxconstraint',c);
end
end
end
[
如上程序 只是一个人脸识别程序的其中一个函数定义 用以代替libsvm工具箱
可是在没有使用libsvm工具箱情况下(没有下载使用历史)
报错
??? Undefined command/function 'svmtrain'.
是为什么呢
于我本身是破解版,而非正版有关系吗
因为觉得函数为matlab自带的一点头绪没有,不知如何解决,故求教。(初入门可能有点笨)

回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!