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

3 次查看(过去 30 天)
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."

采纳的回答

Robert Henson
Robert Henson 2016-8-9
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).

更多回答(2 个)

Walter Roberson
Walter Roberson 2016-8-9
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 2016-8-10
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.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by