Doug Hull, MathWorks
(Originally posted on Doug's MATLAB Video Tutorials blog.)
When constructing a GUI, sometimes it would be appropriate for the GUI to start out in the last state it was in when it was closed. This means the same values selected in list boxes, same radio buttons clicked etc...
This video shows how to go and capture the state of the GUI, store it for later use and then restore it.