Clear Filters
Clear Filters

What does this error mean?

1 view (last 30 days)
Nada Kadhim
Nada Kadhim on 8 Jun 2015
Commented: Nada Kadhim on 9 Jun 2015
Error using svmclassify (line 114)
An error was encountered during classification.
MTIMES is not fully supported for integer classes. At least one input must be scalar.
To compute elementwise TIMES, use TIMES (.*) instead.
Error in svm_matr_2015 (line 101)
classim(:,NN) = svmclassify(svmStruct{NN},TestSet);

Accepted Answer

Walter Roberson
Walter Roberson on 8 Jun 2015
Don't ask to classify data of uint8() class. Classify double data.
classim(:,NN) = svmclassify(svmStruct{NN},double(TestSet));
  2 Comments
Nada Kadhim
Nada Kadhim on 9 Jun 2015
Many thanks.
Nada Kadhim
Nada Kadhim on 9 Jun 2015
Hi Walter,
Thank you very much for your help. Please, I've got another error, could you help me to solve it and understand what's going on. The error is:
FOR EACH CLASS COLLECT ABOUT 20-30 POIMNTS, BETTER IF YOU COLLECT MORE POINTS Error using checklatlon (line 26) Function GEOSHOW expected its first and second input arguments, LAT and LON, to match in size.
Error in geovecshow (line 38) checklatlon(lat, lon, 'GEOSHOW', 'LAT', 'LON', 1, 2);
Error in mapshow (line 231) h = showFcn(varargin{:});
Error in svm_matr_2015 (line 200) mapshow(resrgb,R)

Sign in to comment.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!