Properties of user defined classes cannot be seen in variable editor. why? Please look at the picture.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi every one. As you can see in the picture at the following link I can not see properties of user defined classes in my workspace. When I type command window I can see the properties but in variable editor I can not see any thing. Is it normal, is there a way to solve this problem.
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
0 Kommentare
Antworten (2)
Daniel Shub
am 8 Aug. 2013
This is a reoccurring problem/request. See my previous answer for additional links. In short, the variable editor which makes use of proprietary aspects of com.mathworks.mlservices.MLArrayEditorServices. You could ask TMW to make this FOSS. You could also ask them for a product enhancement to improve the ability of the variable editor to handle custom classes (i.e., provide a hook). If you really want something like the variable editor, your best bet is to create a new method that generates a GUI and rebuild the variable editor from scratch. If you choose this road keep in mind the licensing restrictions on reverse engineering MATLAB.
0 Kommentare
Sean de Wolski
am 8 Aug. 2013
Bearbeitet: Sean de Wolski
am 11 Sep. 2013
This functionality was added in R2013b. I didn't see it specifically documented in the Release Notes but the changes to how structures work in the release notes is there. Here is an example.
classdef AClass
properties
A = pi;
B = [];
end
methods
function obj = AClass(B)
obj.B = B;
end
end
end
Run:
a = AClass(rand(10));
open('a')
2 Kommentare
Daniel Shub
am 11 Sep. 2013
Now that R2013b has gone live and you provide some more details or a link to the documentation?
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!