From: Jurn on
Dear Mathworks

I made a GUI for my internship project, now I'm loading data from a .mat file into my GUI which works fine. However one of my settings figures uses a variable in which the information of the GUI is stored.

img.Button(1).button = uicontrol(........)
img.Button(2).button = uicontrol(.......)
etc.

Now when I first run (without loading), the figures display fine. However when I (re)load, img contains the same information but nothing is displayed. How could I display my variable img (which contains the controllers and there settings)?