Digits multi-class classification HGO & SVM

Error message
Updated 11 Jun 2022

View License

At the very end of the this sample code I get an error message at the line 100 :
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.
Error in Luca3 (line 100)
trainingFeatures(i, :) = extractHOGFeatures(img,'CellSize',cellSize);
I do not know how to make it work. Somone could maybe help me find a solution ?
I'm simply copying the code from the matlab documentation following :

Cite As

Luca Parziale (2024). Digits multi-class classification HGO & SVM (https://www.mathworks.com/matlabcentral/fileexchange/113095-digits-multi-class-classification-hgo-svm), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes