Field of non-structure array Error
Mostrar comentarios más antiguos
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 comentarios
Azzi Abdelmalek
el 20 de Oct. de 2012
post the command of line 6
Marium Malik
el 20 de Oct. de 2012
Azzi Abdelmalek
el 20 de Oct. de 2012
check the values of
ir.DX,
ir.DY
Respuestas (2)
Azzi Abdelmalek
el 20 de Oct. de 2012
0 votos
I guess you are using for example a variable y.field1 where field1 does'nt exist
Jan
el 20 de Oct. de 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.
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!