Unrecognized function or variable 'efmenu' error when opening a figure or app
8 views (last 30 days)
Show older comments
MathWorks Support Team
on 12 Nov 2020
Answered: MathWorks Support Team
on 4 Feb 2021
When I open a figure or an app in MATLAB, I get an error saying:
Unrecognized function or variable 'efmenu'.
Error using matlab.graphics.internal.figfile.FigFile/read (line 31)
Error while evaluating Figure CreateFcn.
Error using load
Unrecognized function or variable 'efmenu'.
Error using figure
Unrecognized function or variable 'efmenu'.
Error using mextglob>Get_Def_WGlob_Struct (line 153)
Error while evaluating Figure CreateFcn.
Error using figure
Unrecognized function or variable 'efmenu'.
Error using wfigmngr>createMenus (line 956)
Error while evaluating Figure CreateFcn.
Restoring my default path and rehashing my toolbox cache doesn't appear to help.
Accepted Answer
MathWorks Support Team
on 12 Nov 2020
Please run the following command in their MATLAB command window:
set(0,'DefaultFigureCreateFcn','default')
This error may indicate that you have defined a custom CreateFcn, and this CreateFcn is now incompatible or out-of-date, causing errors when it is used.
To see if MATLAB is using a custom CreateFcn, run the following command:
get(0, 'DefaultFigureCreateFcn')
If the first command does not resolve the issue, check Add-Ons Manager to see if you have "EzyFit" installed, and if so, try uninstalling it, then restarting MATLAB.
0 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!