how do I recover lost parts of MATLAB
4 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Steven Lord
2020 年 10 月 12 日
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 件のコメント
Steven Lord
2020 年 10 月 14 日
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.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Install Products についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!