MATLAB: Do I receive a “cleanUp” error when I load application data that was saved in a later version of MATLAB

MATLAB

My GUI uses the GETAPPDATA function to "export" the GUI's application data as a structure, and then saves this structure in a MAT-file. If I do this in MATLAB 7.5 (R2007b), and reopen the GUI in MATLAB 7.4 (R2007a) –which causes the opposite process to occur–I receive the following error:
??? Error using ==> load
Unable to find function cleanUp within C:\Program Files\MATLAB\R2007a\toolbox\matlab\graphics\openfig.m.

Best Answer

GUIDE maintains some application data for its own purposes. For example, the "handles" structure is saved in the figure's application data.
Sometimes, GUIDE stores as application data items that are not compatible with previous versions. The 'Listener' application data is an example of this.
Saving only the application data that you have added will likely resolve this issue.