Error related to SVMTRAIN "??? Undefined function or method 'svmtrain' for input arguments of type 'double"
2 次查看(过去 30 天)
显示 更早的评论
Hi,
while running given piece of code, i am getting below error.
Can you please give me resolution. appreciate your help.
*Error *
??? Undefined function or method 'svmtrain' for input arguments of type 'double'.
Can you please suggest what should be the proper resolution:-
CODE:-
load train;
svmStruct=svmtrain(trnData,grp,'showplot',true);
c=svmclassify(svmStruct,test);
if(c==1)
fprintf(1,' Threat found .....\n');
else
fprintf(1,' Clean Script .....\n');
end
fprintf(1,'\nEnd of SVM.....................\n');
Thanks, Gaurav N.
0 个评论
回答(2 个)
David Sanchez
2013-7-24
What's the first " * " doing?
svmStruct=*svmtrain*(trnData,grp,'showplot',true);
Alan Weiss
2013-7-24
编辑:Alan Weiss
2013-7-24
svmtrain was available only in Bioinformatics Toolbox until R2012b. It came into Statistics Toolbox in R2013a. So the question is, do you have the appropriate toolbox?
Enter the command
ver
at the MATLAB command line, and see whether you have it.
Alan Weiss
MATLAB mathematical toolbox documentation
2 个评论
Alan Weiss
2013-7-25
Please contact sales to purchase an appropriate license. You might prefer getting an update to R2013a with Statistics Toolbox rather than upgrading your R2010b version to Bioinformatics.
Alan Weiss
MATLAB mathematical toolbox documentation
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!