Field of non-structure array Error
1 回表示 (過去 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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!