What causes variable editor to be blank for OOP (openvar)
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I've got some fairly large OOP classes defined (which are subclasses of another). Sometime recently, I must have changed something, because now the variable editor/viewer ('openvar') shows blank when I try to open an object of one of these classes (even if I return just the default state of the object. i.e. X = myObj();)
What are the conditions that can cause this? I'm not getting any errors in the constructors, so I don't know where to start looking.
Thanks, Dan
Please does anybody know anything about this? I don't have any idea how to find the part of the code that is responsible. Thanks. Dan
2 件のコメント
per isakson
2012 年 11 月 6 日
Just typing "X" at the command prompt, does that show any property values?
>> X
X =
class_handle handle
Properties:
a: 0
b: 0
採用された回答
その他の回答 (1 件)
Daniel Shub
2012 年 11 月 7 日
This has come up a number of times on Answers. I am pretty sure the variable editor cannot handle custom classes. I would start with this question to see the history. Yair has "customizing the Variable (Array) Editor" on his blog's todo list. My guess is it involves a lot of undocumented java. A donation to his blog might move it up the list....
参考
カテゴリ
Help Center および File Exchange で Construct and Work with Object Arrays についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!