Matlab R2022a startup error in windows 10
32 views (last 30 days)
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)
I'm running on a Windows 10 computer.
On the same computer I have installed R2020a without any issues.
Bala Tripura Bodapati on 23 May 2022
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:
>> 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:
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: