existence of structure without the use of eval
Mostrar comentarios más antiguos
Hello,
I`m trying to see if a structure exists or not in the workspace (i`m checking the structure if it exists in another structure), the name of the structure can be dynamically changed so i used eval.
isfield(eval(struct_name),workspace_variable)
- The problem is that the model updates and compiles when the script hits that line and that is something I don't want.
How can i do this without making the model update ?
Respuestas (1)
Oleg Komarov
el 5 de Abr. de 2012
0 votos
2 comentarios
Adrian Dronca
el 5 de Abr. de 2012
Image Analyst
el 5 de Abr. de 2012
Or change the name of it, rather than the way you save it.
Categorías
Más información sobre Structures en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!