I am running
SVMStruct = svmtrain(xTrain, yTrain);
and the error I get is
Undefined function or method 'svmtrain' for input arguments of type 'double'
I am pretty sure xTrain and yTrain are matrices though:
size(xTrain)
ans =
544 28
size(yTrain)
ans =
544 1
Any idea what’s going on here?
It sounds like the
svmtrainfunction isn’t on your path. Ifdisplays “svmtrain not found”, then you should make sure that you have the bioinformatics toolbox (type
verand see if it is in the list) and it is in your path.