Figure in GIU cannot find graphic handles when opened the second time

1 view (last 30 days)
Hello to all,
I have a strange issue with a GUI application. I have made a GUI comprised of one main figure that launches several other figures. I have a plotting figure with axes, text fields, check boxes and buttons that takes data form the main GUI and plots it in the axes. I have noticed a strange behavior: - when the GUI launches this figure for the first time, it works without errors; - when I launch t for the second time, it DOES NOT FIND THE HANDLES FOR THE GRAPHIC ELEMENTS (in R2013a), or it gives me this error: Warning: Struct field assignment overwrites a value with class "double". See MATLAB R14SP2 Release Notes, Assigning Nonstructure Variables As Structures Displays Warning, for details. A large part of the code is written in the GUI_Opening_Function.
Does anybody have an explanation for this?
Best regards, Ion

Answers (1)

Walter Roberson
Walter Roberson on 8 Sep 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!