SVM Error - The first input should be a struct generated by SVMTRAIN
Mostrar comentarios más antiguos
I am getting error using following code with SVM
SVMStruct1 = svmtrain(data,class,'kernel_function','linear');
class12=svmclassify(SVMStruct1, pdg(:,1:end-1));
Error I get is
??? Error using ==> svmclassify at 53
The first input should be a struct generated by SVMTRAIN.
I dont see a reason why it shouldnt run. Any pointers would be greatly appreciated.
Note: I just tried running the examples from the matlab webpage, but it wont even run. My guess is that somewhere something is corrupt.
Thanks
4 comentarios
Sean de Wolski
el 24 de Oct. de 2012
What does SVMStruct1 look like?
Nirmal
el 24 de Oct. de 2012
Ilya
el 24 de Oct. de 2012
Type
which -all svmtrain
What does it tell you?
Nirmal
el 24 de Oct. de 2012
Respuestas (0)
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!