when i opened my matlab it showed a warning. Can somebody tell me what is this and help me to fix this

4 visualizaciones (últimos 30 días)
Warning: Executing startup failed in matlabrc. This indicates a potentially serious problem in your MATLAB setup, which should be resolved as soon as possible. Error detected was: MATLAB:UndefinedFunction Undefined function or variable 'efmenu'.

Respuestas (2)

Steven Lord
Steven Lord el 27 de Jun. de 2018
According to a quick Google search, efmenu is a function from EzyFit (aka EzyFit Toolbox.) Its documentation page says:
If you want to always have the EzyFit menu in your figures, type
efmenu INSTALL. This will create or update the 'startup.m' file in the
user directory of your Matlab installation. In addition, at
each Matlab restart, this will check the last version of the EzyFit
toolbox on the web (see checkupdate_ef).
In order to cancel the effect of efmenu INSTALL, you need to edit the
'startup.m' file and to remove manually the 2 lines of code related to
the Ezyfit toolbox.
So it seems you installed this toolbox but it is no longer accessible for some reason. The modified startup.m to which it added code is still trying to access it, but it can't find it. Either find some way to make sure it's available to MATLAB on startup (if you want to continue using it) or remove the lines from startup.m (if you don't.)

Jan
Jan el 27 de Jun. de 2018
Did you modify the file matlabrc.m? If so recreate it from your backup. You can edit it with an external editor also. Search for "efmenu" and fix the code.
Maybe you have shadowed a built-in function. Then try to remove all user-defined folders from the pathdef.m file. If Matlab starts successfully afterwards, care for appending user-defined folders at the bottom of the path only, such that built-in functions are not shadowed by the ones defined by you.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by