Matlab R2022a startup error in windows 10

조회 수: 13 (최근 30일)
Bernardo Pinto
Bernardo Pinto 2022년 5월 20일
댓글: Walter Roberson 2022년 5월 23일
Matlab (R2022a) is giving me this error on startup
Error using strsplit
Too many input arguments.
Error in matlab.net.URI/set.Path (line 432)
obj.Path = strsplit(string(value), '/', 'CollapseDelimiters', false);
Error in matlab.net.URI/parse (line 1202)
obj.Path = parts.Path;
Error in matlab.net.URI (line 874)
obj = obj.parse(dest, literal);
Error in matlab.internal.doc.search.sendSearchMessage (line 22)
uri = matlab.net.URI("help/search/" + endpoint);
Error in matlab.internal.doc.search.configureSearchServer (line 19)
matlab.internal.doc.search.sendSearchMessage('addons', 'Body', '[]');
Also when I try to load the help
com.mathworks.jmi.MatlabException: Too many input arguments.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:273)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFeval(Matlab.java:1731)
at com.mathworks.mde.help.DisplayDocPageWorker.runOnMatlabThread(DisplayDocPageWorker.java:19)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
I'm running on a Windows 10 computer.
On the same computer I have installed R2020a without any issues.

답변 (1개)

Bala Tripura Bodapati
Bala Tripura Bodapati 2022년 5월 23일
Hi Bernardo,
It is my understanding that following error is encountered at your end while starting up MATLAB R2022a:
'Error using strsplit.Too many input arguments'
A common cause for this type of error is for a path to contain files with the same filenames as MATLAB system files, such as pathdef.m. A quick way to fix this type of error would be to reset your path and clear your toolboxcache.
Before modifying the search path, it is important to take a backup of your 'pathdef.m' file, which can be located by using the command:
>> which -all pathdef
Before proceeding, ensure that you make a safe copy of the file by copying it to a folder outside of your MATLAB path.
After taking the backup, execute the following commands in the MATLAB Command Window to restore the default MATLAB search path and rehash the toolbox cache:
>> restoredefaultpath
>> rehash toolboxcache
After this step, use MATLAB/Simulink to see if the issue occurs again. If the issue is resolved, then you may want to save the new MATLAB search path by executing the following command:
>> savepath
This will remove any custom paths you may have created. The following MATLAB Answers post is an additional resource on how to back them up:
  댓글 수: 3
Bernardo Pinto
Bernardo Pinto 2022년 5월 23일
편집: Bernardo Pinto 2022년 5월 23일
Hi, I tested this solution and tried reinstallling MATLAB but the problem persist.
Walter Roberson
Walter Roberson 2022년 5월 23일
What shows up for
which -all strsplit

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

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by