Matlab R2022a startup error in windows 10

31 visualizaciones (últimos 30 días)
Bernardo Pinto
Bernardo Pinto el 20 de Mayo de 2022
Comentada: Walter Roberson el 23 de Mayo de 2022
Matlab (R2022a) is giving me this error on startup
Error using strsplit
Too many input arguments.
Error in (line 432)
obj.Path = strsplit(string(value), '/', 'CollapseDelimiters', false);
Error in (line 1202)
obj.Path = parts.Path;
Error in (line 874)
obj = obj.parse(dest, literal);
Error in (line 22)
uri ="help/search/" + endpoint);
Error in (line 19)'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(
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(
at com.mathworks.jmi.Matlab.mtFeval(
at com.mathworks.jmi.MatlabWorker$
I'm running on a Windows 10 computer.
On the same computer I have installed R2020a without any issues.

Respuestas (1)

Bala Tripura Bodapati
Bala Tripura Bodapati el 23 de Mayo de 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 comentarios
Walter Roberson
Walter Roberson el 23 de Mayo de 2022
What shows up for
which -all strsplit

Iniciar sesión para comentar.


Más información sobre Startup and Shutdown en Help Center y File Exchange.




Community Treasure Hunt

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

Start Hunting!

Translated by