how do I recover lost parts of MATLAB

4 views (last 30 days)
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
David Horton
David Horton on 14 Oct 2020
I actually had installation disks with my first version of MATLAB. We were actively comparing MATLAB with MATHCAD (I think it was MATHCAD) in those days, to see which better suited us. Obviously, MATLAB won out. But, you're right - that was many moons ago. (I just looked it up - MATHCAD is still around apparently.)
David Horton
David Horton on 14 Oct 2020
Oh and, because you mentioned storage capacity, I think both MATLAB & MATHCAD required several disks for installation - maybe even close to 10.

Sign in to comment.

Accepted Answer

Steven Lord
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
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.
David Horton
David Horton on 14 Oct 2020
Thanks again. I will send the .log file to Tech Support. FYI, here is the SetImageTextureSize.m script:
function SetImageTextureSize()
oglInfo = opengl('data');
curMaxTexSize = get(groot, 'DefaultImageMaxTextureSize');
if oglInfo.MaxTextureSize < curMaxTexSize
set(groot, 'DefaultImageMaxTextureSize', oglInfo.MaxTextureSize);
end
Currently, this script would have no effect because the "MaxTextureSize" is 16384 and Default is 2048.
I have no idea how pathdef was deleted; there were other files & folders missing also. In any case, thanks for all your help.

Sign in to comment.

More Answers (0)

Categories

Find more on Install Products in Help Center and File Exchange

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!