Effacer les filtres
Effacer les filtres

Field of non-structure array Error

1 vue (au cours des 30 derniers jours)
Marium Malik
Marium Malik le 20 Oct 2012
Attempt to reference field of non-structure array.
Error in CreateHOGRep (line 6)
hogrep.II=hogopts.LUTind(DI);
Error in ComputePHogFeatures (line 6)
hr = CreateHOGRep(ir.DX, ir.DY, hogopts);
What could be the reason of it?
  3 commentaires
Marium Malik
Marium Malik le 20 Oct 2012
line 6 of P hog is hr= CreateHOGRep(ir.DX, ir.DY, hogopts);
line 6 of createhogrep is hogrep.II=hogopts.LUTind(DI);
Azzi Abdelmalek
Azzi Abdelmalek le 20 Oct 2012
check the values of
ir.DX,
ir.DY

Connectez-vous pour commenter.

Réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 20 Oct 2012
I guess you are using for example a variable y.field1 where field1 does'nt exist

Jan
Jan le 20 Oct 2012
Stop Matlab, when the error occurs:
dbstop if error
Now run the function again. When it stops, check the values of the variables. The error messages means, that you try to access a field of a variable, which is not a struct.

Catégories

En savoir plus sur Structures dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by