Matlab R2022a startup error in windows 10

15 vues (au cours des 30 derniers jours)
Bernardo Pinto
Bernardo Pinto le 20 Mai 2022
Commenté : Walter Roberson le 23 Mai 2022
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.

Réponses (1)

Bala Tripura Bodapati
Bala Tripura Bodapati le 23 Mai 2022
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 commentaires
Bernardo Pinto
Bernardo Pinto le 23 Mai 2022
Modifié(e) : Bernardo Pinto le 23 Mai 2022
Hi, I tested this solution and tried reinstallling MATLAB but the problem persist.
Walter Roberson
Walter Roberson le 23 Mai 2022
What shows up for
which -all strsplit

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by