MATLAB: Do I receive errors in GUIDE after I tried to edit the FINDPACKAGE function

built-inerrorsfindpackageguideMATLAB

I tried to open the FINDPACKAGE function by typing :
edit findpackage
at the MATLAB command prompt and it brought up a blank script in the MATLAB editor. After this I receive the following errors when I try to invoke GUIDE :
Warning: an error occurred while parsing class scribe.legend:
Attempt to execute SCRIPT findpackage as a function.
> In hgload>figload_reset at 290
In hgload at 181
In guidefunc>newGuideFig at 1869
In guidefunc>readSavedFigure at 2208
In guidefunc at 96
??? Error using ==> guidefunc
Undefined command/function 'uitools.uimodemanager'."
I would like to know if the FINDPACKAGE function can be restored without having to reinstall MATLAB.

Best Answer

FINDPACKAGE is a built-in function in MATLAB and its code cannot be edited. A blank script called "findpackage.m" might have been created when you tried to view the function in the editor and this script is over-loading the function of the same name leading to the errors.
Type :
which -all findpackage
at the MATLAB command prompt.
If the result points to some location for this file, delete this file, exit MATLAB and restart it again.