Does mathworks support a classdef inspector?
古いコメントを表示
I was wonder if the following feature exists. I want to inspect a classdef just like i inspect a figure.
e.g. inspect(figure)
This allow me too change the properties via GUI.
Is there a similar command for a classdef?
i.e something like inspect(myClassDef) ?
I can't seem to find any documentation explaining if this is supported or not?
回答 (4 件)
If obj is an instance of your class, you can use the variable editor to change its properties
openvar obj
There would be restrictions, possibly, if the property is private,protected, etc...
6 件のコメント
Bryan
2013 年 1 月 21 日
Well, you could write your own GUI using GUIDE...
I don't see how there could be a generic GUI provided for you because, in general, the classdef doesn't carry advance information about what kind of data your properties will hold and what range of values they would take on. For example, how can a GUI let you set a property via a pull-down menu, unless it is told in advance somehow what list of values that menu should include?
Daniel Shub
2013 年 1 月 21 日
Walter Roberson
2013 年 1 月 21 日
編集済み: Walter Roberson
2013 年 1 月 21 日
One thing to keep in mind is that as a general policy, Mathworks does not allow their development tool GUIs to be compiled.
Matt J
2013 年 1 月 21 日
Not sure what that means, Walter. What are "development tool GUIs"? I've compiled lots of GUIDE-generated GUIs in the past.
Walter Roberson
2013 年 1 月 21 日
Look at http://www.mathworks.com/products/compiler/supported/compiler_support.html and notice how many places it says "All GUI provided with toolbox" as being unsupported for code generation. Likewise you cannot compile GUIDE -itself-.
So if Mathworks were to provide the class definition inspector GUI then probably they would not allow it to be compiled.
Sean de Wolski
2013 年 1 月 21 日
0 投票
I don't know of this feature. You should contact us and create an enhancement request.
Also:
per isakson
2014 年 3 月 8 日
編集済み: per isakson
2014 年 3 月 8 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Software Development についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!