how do I recover lost parts of MATLAB
4 views (last 30 days)
Show older comments
David Horton
on 12 Oct 2020
Commented: David Horton
on 14 Oct 2020
PORTIONS of MATLAB have disappeared from my PC, presumably having been deleted. I am unable
to edit scripts or execute code.
How do I recover the missing pieces or re-install them, or MATLAB itself? Here are the first few errors
I see when MATLAB boots:
_________________________________________________________________________
Warning: C:\Program Files\MATLAB\R2015b\toolbox\local\pathdef.m not found.
Toolbox Path Cache is not being used. Type 'help toolbox_path_cache' for more info
Undefined function or variable 'ispc'.
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
Warning: Duplicate directory name: C:\Program Files\MATLAB\R2015b\toolbox\local
Warning: Initializing Java preferences 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 'usejava' for input arguments of type 'char'.
> In matlabrc (line 120)
Warning: Initializing MATLAB Graphics failed.
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 'ismac'.
> In hgrc (line 145)
In matlabrc (line 126)
Warning: Failed to add default profiler filters.
> In matlabrc (line 135)
Undefined function or variable 'usejava'.
Error in matlabrc (line 189)
if ~(ismcc || isdeployed || feature('isdmlworker')) && usejava('jvm')
11 Comments
Accepted Answer
Steven Lord
on 12 Oct 2020
That indicates the MATLAB path has not been set correctly this session. Have you tried what the message told you to try?
Warning: MATLAB did not appear to successfully set the search path. To recover for this session of MATLAB, type "restoredefaultpath;matlabrc". To find out how to avoid this warning the next time you start MATLAB, type "docsearch problem path" after recovering for this session.
8 Comments
Steven Lord
on 14 Oct 2020
After reading through that directory listing for toolbox/local quickly it looks fine with two exceptions. The first is that it does not contain a pathdef.m file (which is the cause of your MATLAB installation not recognizing many functions.) The second is that it contains a file SetImageTextureSize.m that I don't recognize. Do you know where that came from? If a third party toolbox was writing to toolbox/local it could have accidentally deleted pathdef.m (while trying to manually update it, perhaps?)
If you experienced a problem updating to Update 7 for release R2016b please send the log file to Technical Support using the telephone icon in the upper-right corner of this page. I only see three installation and licensing bugs that exist in release R2016b according to the Bug Reports page and none seem related to just installing an Update release.
More Answers (0)
See Also
Categories
Find more on Install Products 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!