I have '.mat files' for different objects and I want to extract HOG features from the mat files, and I want to apply those features on "fitcecoc" SVM one vs one classifier. I have written a code but giving the error like this:

CS=[16,16];

traindb='D:\matprog\matfiles\trainfiles';

filePattern=fullfile(traindb, '*.mat');

matFiles = dir(filePattern);

for i = 1:length(matFiles)

baseFileName = fullfile(traindb, matFiles(i).name);

ref_files{i} = load(baseFileName);

trainingfeatures(i,:)=extractHogfeatures(ref_files,'cellsize',CS);

end

traininglabels=traindb.Labels;

classifier=fitcecoc(trainingfeatures,traininglabels);

ERROR:

Dot indexing is not supported for variables of this type.

how to give labels and is it correct way to follow?

More Santhosh kumar Buddepu's questions See All
Similar questions and discussions