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

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.

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2013년 4월 23일
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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by