Can't see the fields of my GUI variables in workspce
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am writing a GUI program with matlab. The program is working fine, but when i run it in debugging mode to follow the changes of my variables through the workspace, handles structure is represent as 1X1 struct whitin each variable has value from double type. i Update handles structure every time i make a change of variable. so why i can't see the fields of every variable when i go to check it in the workspace?
0 commentaires
Réponses (1)
Walter Roberson
le 15 Oct 2015
I predict that you are using R2014a or earlier, and that the values you are storing in the handles structure are handles of graphics objects.
In R2014a and earlier, the handles of graphics objects are represented as double precision numbers. Therefore in those versions, if you did something like
handles.editbox = uicontrol('style', 'edit', 'String', 'cricket');
then what would get stored at handles.editbox would be the double precision value that the graphics subsystem would know referred to the graphics object. In order to see the properties of the object you would need to get() on the object, like
get(handles.editbox)
In versions from R2014b onwards, graphics objects are represented by Objects in the Object Oriented Programming sense, and so display differently.
0 commentaires
Voir également
Catégories
En savoir plus sur Graphics Object Properties dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!