Creating Graphical User Interfaces | ![]() ![]() |
Changing the Name of the M-file and FIG-file
GUIDE gives the GUI FIG-file and its associated application M-file the same root name; only the extensions differ. When you execute the M-file to launch the GUI, the following statement uses the mfilename
command to determine the name of the FIG-file from the name of the M-file.
fig = openfig(mfilename,'reuse');
If the FIG-file name differs from the M-file name, it is not called correctly.
![]() | Changing the Name of Callback Subfunctions | GUI Building Tools | ![]() |