initialize gui
Show older comments
I'm trying to initialize some parameters/data (defaults) in a GUI and I am using a initialization function in the GUI's opening function to do this. This works fine if I wish to use these settings forever, but I need to be able to change them. So far, I haven't figured out how to get my changes stick. The defaults always get reloaded. Is this because my initialization function is in the gui opening function? Is there another way to initialize a gui? Input args to the gui?
Accepted Answer
More Answers (1)
Fangjun Jiang
on 2 Nov 2011
0 votes
Do you mean you want your GUI looks like the last time you end your GUI application? That can be done but you have to save your last status into a separate file and then in your GUI opening function, to read those information and set the values.
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!