I have problem when I start the matlab
94 views (last 30 days)
Show older comments
Inguk
on 30 Jan 2023
Answered: Sai Sumanth Korthiwada
on 7 Feb 2023
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 Comment
Jan
on 30 Jan 2023
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.
Accepted Answer
Sai Sumanth Korthiwada
on 7 Feb 2023
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 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing 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!