AbstractPolicy.m debug warning
7 ビュー (過去 30 日間)
古いコメントを表示
Hi there,
Could someone please explain what the following debug warning in AbstractPolicy.m means?
% DEBUG: limit to scalar policies only. To step multiple
% policies caller may use loops.
assert(isscalar(this));
0 件のコメント
回答 (2 件)
Yongjian Feng
2021 年 7 月 2 日
Hello kloner,
Basically it means that 'this' can not be an array. It must be a scaler. As explained in the comment, if you have an array, then just loop through the array and call the function for each element in the array.
Thanks,
Yongjian
2 件のコメント
Yongjian Feng
2021 年 7 月 2 日
What is an riQAgent?
You can also do these to narrow it down:
- If you run this from the debugger, set a break point there, and type isscalar(this) in the command line window.
- type class(this) to make sure it is indeed riQAgent.
- type which isscalar to check if it is the built-in isscalar being called.
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!