Does mathworks support a classdef inspector?

1 view (last 30 days)
Bryan
Bryan on 21 Jan 2013
Edited: per isakson on 8 Mar 2014
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?

Answers (4)

Matt J
Matt J on 21 Jan 2013
Edited: Matt J on 21 Jan 2013
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 Comments
Matt J
Matt J on 21 Jan 2013
Not sure what that means, Walter. What are "development tool GUIs"? I've compiled lots of GUIDE-generated GUIs in the past.
Walter Roberson
Walter Roberson on 21 Jan 2013
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.

Sign in to comment.


Sean de Wolski
Sean de Wolski on 21 Jan 2013
I don't know of this feature. You should contact us and create an enhancement request.
Also:

Bryan
Bryan on 21 Jan 2013
Thanks for the feedback. I've put in a ticket.
It's unfortunate this doesn't exist. The link you sent to uiinspect helps as i assume this can be compiled. But it's the controls are a bit shabby.
Matts confirmed my feelings about the declarations. I would expect some declaration to allow the GUI understand valid values. e.g centimeters, inches, normaisation, points.
I could create my own gui, however the guide options are not great. Ideally i need a tree view control. Their is and undocumented "uitree" function. But it really doesn't have all the features required for this sort of gui. For example you can't put in a pull down menu on a node. So it would probably make more sense to do this in java or c# but i have little coding experiance in those domains. :-( Or perhaps their is a nice ActiveX control avaliable?
I think some sort of classdef inspector would be a nice feature for mathworks to support! I have asked the same question a couple of years ago during a meeting with mathworks (I worked for ST micro-electronics at the time). I was hoping the feature may have appear :-/

per isakson
per isakson on 8 Mar 2014
Edited: per isakson on 8 Mar 2014

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!