check if a variable in a structure exist
202 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
dpb
il 16 Apr 2014
isfield(handles,'Y2')
doc isfield % for details
help struct % for reminder on structures
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!