Field of non-structure array Error

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

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 20일
post the command of line 6
Marium Malik
Marium Malik 2012년 10월 20일
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 2012년 10월 20일
check the values of
ir.DX,
ir.DY

댓글을 달려면 로그인하십시오.

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 10월 20일

0 개 추천

I guess you are using for example a variable y.field1 where field1 does'nt exist
Jan
Jan 2012년 10월 20일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Structures에 대해 자세히 알아보기

질문:

2012년 10월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by