What is the solution ?
4 views (last 30 days)
Show older comments
When I start the matlab write this message and not running any programs !
Toolbox Path Cache read in 0.20 seconds.
Attempt to execute SCRIPT pathdef as a function:
D:\Program Files\MATLAB\R2011a\toolbox\local\pathdef.m
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: D:\Program
Files\MATLAB\R2011a\toolbox\local.
MATLAB Path initialized in 0.00 seconds.
Warning: Initializing Handle Graphics 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 'ispc'.
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 or method 'usejava' for input arguments of type 'char'.
> In matlabrc at 123
Warning: Failed to add default profiler filters.
> In matlabrc at 179
0 Comments
Answers (1)
Muskan
on 30 Oct 2024 at 7:28
Hi,
As per my understanding of the error message, this error may be related to a recent Windows defender update that prevents MATLAB from connecting to the Java installation. Performing a clean install of MATLAB has been known to fix this issue. Please refer the following MATLAB Answer for more information: https://www.mathworks.com/matlabcentral/answers/131519-how-do-i-perform-a-clean-installation-of-matlab
I hope this helps!
0 Comments
See Also
Categories
Find more on Startup and Shutdown 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!