Command line help fails, reports "Error using append Too many input arguments"

14 次查看(过去 30 天)
Example, requesting just "help" with no arguments ...
>> help
Warning: The following error was caught while executing 'matlab.internal.help.helpProcess' class destructor:
Error using append
Too many input arguments.
Error in matlab.internal.help.createMatlabLink (line 5)
link = append('', linkText, '');
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.help.createMatlabCommandWithTitle (line 3)
link = matlab.internal.help.createMatlabLink(action, item, message);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.help.helpProcess/displayHelp (line 19)
searchCommand = matlab.internal.help.createMatlabCommandWithTitle(hp.wantHyperlinks, searchMessage, "docsearch", hp.topic);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.help.helpProcess/delete (line 95)
disp(hp.displayHelp);
^^^^^^^^^^^^^^
Error in help (line 29)
end
^
> In help (line 29)
>>
  1 个评论
Meg Noah
Meg Noah 2025-8-7
What command was given right before the command help? In R2024b, it appears to execute help on the last function/method that was run.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2025-8-7
You have a third-party append.m that is interfering with the Mathworks append()
which -all append
/MATLAB/toolbox/matlab/strfun/append.m /MATLAB/toolbox/control/ctrlobsolete/@double/append.m % double method append is a built-in method % string method /MATLAB/toolbox/matlab/timeseries/@timeseries/append.m % timeseries method append is a Java method % com.mathworks.fileutils.MatlabPath method append is a built-in method % matlab.automation.Verbosity method append is a built-in method % matlab.unittest.internal.fixtures.FolderScope method /MATLAB/toolbox/matlab/testframework/unittest/core/+matlab/+unittest/+plugins/+plugindata/ResultDetails.m % matlab.unittest.plugins.plugindata.ResultDetails method /MATLAB/toolbox/matlab/external/interfaces/webservices/http/+matlab/+net/+http/+io/ContentConsumer.m % matlab.net.http.io.ContentConsumer method /MATLAB/toolbox/matlab/testframework/unittest/core/+matlab/+unittest/+internal/+diagnostics/CompositeConditionsSupplier.m % matlab.unittest.internal.diagnostics.CompositeConditionsSupplier method append is a built-in method % py.list method /MATLAB/toolbox/mbc/mbcdata/@cgoppoint/append.m % cgoppoint method /MATLAB/toolbox/mbc/mbcdesign/@designdev/append.m % designdev method /MATLAB/toolbox/mbc/mbcguitools/@xreglistctrl/append.m % xreglistctrl method /MATLAB/toolbox/mbc/mbctools/@sweepset/append.m % sweepset method /MATLAB/toolbox/risk/risk/@esbacktest/append.m % esbacktest method /MATLAB/toolbox/risk/risk/@varbacktest/append.m % varbacktest method /MATLAB/toolbox/shared/controllib/engine/@InputOutputModel/append.m % InputOutputModel method
I predict that something else will show up before toolbox/matlab/strfun/append.m

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming Utilities 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by