Handles do not load without GUIDE opened
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Matyas Kadlas
le 21 Juil 2017
Réponse apportée : Akhilesh Thakur
le 27 Juil 2017
Hello guys, I started fixing an old GUI and I encountered an unexpected error that I am unable to fix. If I start my GUI without GUIDE window opened, handles structure is empty and every time I use get or set I get an error "Attempt to reference field of non-structure array." (well it is empty, that's why). BUT when I open GUIDE window and start the GUI again the handles structure is filled and whole program is able to run without any problems. Sadly I cannot post code to this program (company policy).
Anyone encountered similar problem?
Thanks in advance.
2 commentaires
Walter Roberson
le 21 Juil 2017
How are you starting your GUI? It is not possible to start the GUI just by double-clicking on the .fig file: you need to run the .m file
Réponse acceptée
Akhilesh Thakur
le 27 Juil 2017
If the handle's structure is not loaded or is empty that means your GUI is not running. You are simply running or opening the figure. By opening GUIDE you actually open the figure and edit and if you run it it will definitely run. Try running .m file it will work.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects 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!