Why does GUIDE automatically modify FIG-files even though I do not save them?

1 view (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Apr 2013
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.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!