MATLAB: ToolBar Buttons do not function

guimatlab guitoolbar

If I open my GUI from the folder where it is located, the tool bar buttons do not function. The toolbar is there but pressing the button does nothing.
However, the buttons do work when I press new, then GUI, then open existing GUI, and select the same GUI. Why does the coding work in this method but not the other?

Best Answer

How are you opening the GUI in the first case? Are you double-clicking the figure file or opening it with OPENFIG or do you run the GUI function?