I have problem when I start the matlab

조회 수: 114 (최근 30일)
Inguk
Inguk 2023년 1월 30일
답변: Sai Sumanth Korthiwada 2023년 2월 7일
When I start the matlab, an error message comes out despite I did nothing yet.
here's the error message;
Execution of script pathdef as a function is not supported:
C:\Program Files\MATLAB\R2022b\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.
Undefined function 'usejava' for input arguments of type 'char'.
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: 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
Unrecognized function or variable 'initdesktoputils'.
Student License -- for use by students to meet course requirements
and perform academic research at degree granting institutions only.
com.mathworks.mvm.exec.MvmExecutionException: internal.matlab.desktop.editor.breakpointsForAllFiles
at com.mathworks.mvm.exec.NativeFutureResult.nativeGet(Native Method)
at com.mathworks.mvm.exec.NativeFutureResult.get(NativeFutureResult.java:62)
at com.mathworks.mvm.exec.FutureResult.getInternal(FutureResult.java:413)
at com.mathworks.mvm.exec.FutureFevalResult.getInternal(FutureFevalResult.java:49)
at com.mathworks.mvm.exec.FutureResult.get(FutureResult.java:263)
at com.mathworks.mlservices.MatlabDebugServices$3.run(MatlabDebugServices.java:978)
at com.mathworks.mvm.exec.NativeFutureResult.callRunnable(NativeFutureResult.java:146)
at com.mathworks.mvm.exec.NativeFutureResult.done(NativeFutureResult.java:138)
Caused by: com.mathworks.mvm.exec.MvmRuntimeException: Unrecognized function or variable 'internal.matlab.desktop.editor.breakpointsForAllFiles'.
Unrecognized function or variable 'connector.internal.lifecycle.callConnectorStarted'.
Unrecognized function or variable 'fullfile'.
Error occurred during background graphics initialization: Undefined function 'fullfile' for input arguments of type 'char'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unrecognized function or variable 'matlab.internal.addons.addToMessageCatalog'.
Unrecognized function or variable 'matlab.internal.addons.addToMessageCatalog'.
Unrecognized function or variable 'matlab.internal.addons.addToMessageCatalog'.
Unrecognized function or variable 'matlab.supportpackagemanagement.internal.getInstalledSupportPackagesInfo'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unrecognized function or variable 'matlab.internal.debugger.breakpoints.initBreakpointsStoreInstance'.
Unrecognized function or variable 'pwd'.
Unrecognized function or variable 'matlab.internal.codingui.warmupProgrammingAids'.
Unable to resolve the name 'matlab.internal.doc.updateConnectorDocroot'.
Unable to resolve the name 'matlab.internal.doc.updateCustomDocContent'.
Unable to resolve the name 'matlab.internal.doc.search.configureSearchServer'.
I don't know what should I do. Restarting the program doesn't work.
  댓글 수: 1
Jan
Jan 2023년 1월 30일
The error message tells you to restore the default path:
restoredefaultpath;matlabrc
Maybe you need admin privileges to do so. Anyway, it is a good strategy to follow such advices given in the error messages.

댓글을 달려면 로그인하십시오.

채택된 답변

Sai Sumanth Korthiwada
Sai Sumanth Korthiwada 2023년 2월 7일
Hi Inguk,
I understand that you are facing an issue while launching MATLAB R2022b. To resolve this issue, please follow the troubleshooting steps mentioned below:
1. In MATLAB Command Window, execute the following commands:
>> restoredefaultpath
>> rehash toolboxcache
>> matlabrc
>> savepath
These commands will generate a new file "pathdef.m". Please relaunch the MATLAB application.
2. The issue can occur if you do not have 'write' permissions on the folder where MATLAB is installed.
For windows:
Please refer to the below mentioned link:
For Unix/Linux based operating system:
To resolve this issue, open terminal and run the appropriate command to recursively change the user's permissions on the MATLAB folder to read/write/execute:
sudo chmod -R 755 ./MATLAB
Hope this helps.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by