check if a variable in a structure exist
78 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
dpb
am 16 Apr. 2014
isfield(handles,'Y2')
doc isfield % for details
help struct % for reminder on structures
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!