0
folgenden Code:Wie indexiere ich in ein Objekt der Klasse ClassificationSVM?
for i = 1:length(tempclasses)
for j=i+1:length(tempclasses)
ind1=find(strcmp([classes.class1],tempclasses(i)));
ind2=find(strcmp([classes.class2],tempclasses(j)));
ind=intersect(ind1,ind2);
tmp=predict(SVMModel(ind).svm, histr);
ind=find(strcmp({t.ind}, tmp));
t(ind).fit=t(ind).fit+1;
end
end
Fehler gibt:
Error using classreg.learning.internal.DisallowVectorOps/subsref (line 16) You cannot index into an object of class ClassificationSVM using() indexing.
Gibt es irgendwelche Ideen, wie man es beheben?
Sie benötigen ein minimales Arbeitsbeispiel erstellen (http://stackoverflow.com/help/mcve), sonst ist es nicht einfach zu helfen – ead