What is the solution ?

4 次查看(过去 30 天)
Tibor Matei
Tibor Matei 2014-2-18
回答: Muskan 2024-10-30,7:28
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

回答(1 个)

Muskan
Muskan 2024-10-30,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!

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by