MATLAB: Does GUIDE automatically modify FIG-files even though I do not save them

controldateMATLABmodificationsoftwaresourceversion

When I navigate to the callback of a GUI object from GUIDE, it automatically saves the FIG-file.
I navigate to the callback by right-clicking on the GUI object in GUIDE, and then selecting
View Callbacks -> Callback from the context menu.
The FIG-file is saved, and the date modified is updated to the current time.

Best Answer

This is the expected behavior.
When you navigate to the callback function code in the program file of a GUI in GUIDE, the string in the 'Callback' property of the FIG-file is replaced by a string built by GUIDE to point to the same callback function. This ensures consistency of the callback function calls in the GUI. When this string is replaced, GUIDE saves the FIG-file so that consistency in the name of the callback is maintained between the code and FIG-file of the GUI.