I am creating a GUI in matlab using guide. It's non-blocking (not calling uiwait). When the gui window is closed, I would like to execute some clean up code.
Is there an gui_ClosingFcn callback I should define in analogy to the gui_OpeningFcn template that guide creates for me?