Field of non-structure array Error
조회 수: 2 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Azzi Abdelmalek
2012년 10월 20일
I guess you are using for example a variable y.field1 where field1 does'nt exist
댓글 수: 0
Jan
2012년 10월 20일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!