check if a variable in a structure exist
77 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello, I must check if the variable handles.Y2 exists in the structure handles(I work with gui). Using exist gives me 0 although it exist in the structure thanks
0 commentaires
Réponse acceptée
dpb
le 16 Avr 2014
isfield(handles,'Y2')
doc isfield % for details
help struct % for reminder on structures
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Structures 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!