check if a variable in a structure exist
202 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
dpb
el 16 de Abr. de 2014
isfield(handles,'Y2')
doc isfield % for details
help struct % for reminder on structures
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Structures en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!