Why does Guide no longer update my code file when I run or save my *.fig?

The Guide tool was working fine as I was making changes to both the *.fig and *.m files for a GUI. Then something changed and now Guide no longer updates my code file. Is there a way to get Guide to update the code file again so I can make changes in Guide rather than manually?
I tried removing the code file but I just get errors on all my callbacks (instead of just the changed callbacks). I tried saving directly from the file menu as well as running from Guide. The result is the same. There must be some simple concept about how the Guide saves or does not save code that I am missing.

Answers (1)

Did you change the name of your M-file by any chance? When you use GUIDE to develop GUI and code, the .m file and .fig files are linked. By default, I think they have the same file name with different extension. All the callback function names are also related to the names of the objects in the GUI figure. Check both .m and .fig file name first.

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products

Asked:

on 16 Jun 2011

Community Treasure Hunt

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

Start Hunting!