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
2012-10-20
post the command of line 6
Marium Malik
2012-10-20
Azzi Abdelmalek
2012-10-20
check the values of
ir.DX,
ir.DY
回答(2 个)
Azzi Abdelmalek
2012-10-20
0 个投票
I guess you are using for example a variable y.field1 where field1 does'nt exist
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!