How to converting cell to matrix for image based classification?
3 views (last 30 days)
Show older comments
To train my data using SVM classifier, I am using 'fitcecoc' function, the input argument it takes must be matrix or table.
I am trying basic classification using only images not doing any feature extractiion. The feature vector that I created consist of nested cell which I am not able to convert into matrix. Please help
Robert U on 1 Sep 2021
Hi Nikhat Ali,
Please have a look into documentation fitcecoc(). The way you call the function is not working since data format and data dimensions is not correct.
"trainvector" must be data type "double" or "single". Plus, the matrix is supposed to be sparse or full, and the length of "trainingLabels" must correspond to the number of observations.
I suppose, neither data type nor number of observations fit.
More Answers (0)
Find more on Classification Ensembles in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!