필터 지우기
필터 지우기

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.

답변 (2개)

David Sanchez
David Sanchez 2013년 7월 24일
What's the first " * " doing?
svmStruct=*svmtrain*(trnData,grp,'showplot',true);
  댓글 수: 1
gaurav
gaurav 2013년 7월 24일
Thanks for your reply.
I think "*" was put by mistake. I am still getting same error which i mentioned in my earlier comment.
Can you please suggest how can i resolve this.
P.S - I removed "*" from my code.
Thank You, Gaurav N.

댓글을 달려면 로그인하십시오.


Alan Weiss
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
gaurav
gaurav 2013년 7월 25일
Thank You Alan for your reply.
I am using below Matlab version as checked using "ver" command and looks like Bioinformatics toolbox is not available in the list of given toolbox.
MATLAB Version 7.11.0.584 (R2010b)
Can you please suggest how can i get this Bioinformatics toolbox on my current version of matlab in order to get svmtrain?
Thank You, Gaurav N.
Alan Weiss
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!

Translated by