Matlab 2016a does not install correctly - everything crashes with "Too many input arguments."

2 views (last 30 days)
Matlab R2016a does not install correctly on my Lenovo Yoga 900 Windows 10 laptop. (I recently installed 2016a on several different other machines and this problem did not arise on those.) On my laptop I tried to install many times with and without firewall, meticulous removal of previous versions, etc. The error is repeatable and nothing really works. This is what I get when Matlab 2016a starts:
Warning: Function size has the same name as a MATLAB builtin. We suggest you
rename the function to avoid a potential name conflict.
Warning: Initializing MATLAB Graphics failed.
This indicates a potentially serious problem in your MATLAB setup, which should
be resolved as soon as possible. Error detected was:
MATLAB:TooManyInputs
Too many input arguments.
> In hgrc (line 163)
In initprefs (line 11)
In matlabrc (line 113)
Warning: The following error was caught while executing 'internal.hotplug.EventSource' class
destructor:
Too many input arguments.
> In internal.deviceplugindetection.Manager (line 161)
In internal.deviceplugindetection.Manager.getInstance (line 258)
In matlabrc (line 137)
Warning: The following error was caught while executing 'asyncio.Channel' class destructor:
Too many input arguments.
> In internal.deviceplugindetection.Manager (line 161)
In internal.deviceplugindetection.Manager.getInstance (line 258)
In matlabrc (line 137)
Academic License
Error using connector.internal.autostart.run
Too many input arguments.
... and trivial functions do not work any more, crashing with "Too many input arguments."
  1 Comment
deri chere
deri chere on 8 Oct 2021
no response while i am running MathWorks MATLAB R2016a setup as aministratore
anyone please help me
the software i already download is 7.4 GB

Sign in to comment.

Accepted Answer

Robert Henson
Robert Henson on 9 Aug 2016
It looks like you have a function called size.m somewhere on your MATLAB path. Search your computer for files called size.m and rename any file with this name except for the one in the MATLAB installation folder ($MATLABROOT\toolbox\matlab\elmat\size.m).

More Answers (2)

Walter Roberson
Walter Roberson on 9 Aug 2016
You might have a pathdef.m that is reflecting an old installation or is otherwise corrupted. See http://www.mathworks.com/help/matlab/matlab_env/when-path-not-successfully-set-at-startup.html for information on fixing pathdef.m
Robert Henson's answer about size.m is also potentially right, but I would expect more routines to be able to function if that was the source of the problem.

Csulok
Csulok on 10 Aug 2016
Thank you very much. Somehow the order of the directories in the path list changed between the installations and one of the usually unused default directories that was moved high on the list contained a size.m... that had fewer input arguments than the built in function. Apparently the new Matlab installation had found this first and crashed. I removed the offending function and it fixed the problem.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!