How to programmatically get a list of all app properties in AppDesigner
Afficher commentaires plus anciens
Hi,
I'm writing a large app in appDesigner, and I want to create a list / text area that would display all of the app property fields. I can't find a way to programatically pull their names, does anyone know a way of doing this?
P.S. I'm on 2022b.
Thanks!
VS
Réponse acceptée
Plus de réponses (1)
Joseph Reynolds
le 4 Avr 2025
0 votes
To identify the properties that are created for just the GUI I used the P.Validation.Class.Name.
name = 'appFileName';
mc = eval(['?', name]);
P = mc.PropertyList;
np = length(P);
flt = false(np,1);
for n = 1:np
flt(n) = contians({P.Validation.Class.Name}, 'matlab.ui');
end
The Auto generated Properties have validation that start with 'matlab.ui'.
I use the filter to remove the auto generated properties.
P_used = P(~flt);
Catégories
En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!