Problems with "help" and "doc" in R2014b

1 回表示 (過去 30 日間)
K E
K E 2015 年 2 月 3 日
コメント済み: K E 2015 年 3 月 6 日
After installing R2014b, help and doc commands no longer work correctly. Is there a fix? Some background:
  • help followed by any function name returns a fileparts error (example below)
  • doc sometimes crashes Matlab, sometimes results in an error (example below), and sometimes opens up a help window as expected
help clear % Trying to display command window help for "clear" function
Error using fileparts
Too many output arguments.
Error in makehelphyper (line 73)
[unused fcnName unused unused] = fileparts(fcnName);
Error in help>displayHelp (line 211)
helpStr = makehelphyper('help', pathname, JRI_linkableTopic,
helpStr);
Error in help (line 130)
displayHelp(helpStr, topic, usejava('desktop'));
doc quantile % Trying to open standalone help window for "quantile" function
Too many output arguments.
Error in help (line 138)
[varargout{1:nargout}] = [helpStr moreInfo];
Error in help2xml (line 48)
[helpstr, docTopic] = help(topic, helpCommandOption);
Error in help2html (line 20)
[helpNode, helpstr, fcnName, found] = help2xml(dom, topic, pagetitle,
helpCommandOption);
Error in helpwin (line 76)
html = help2html(topic,pagetitle,helpCommandOption);
Error in doc>showHelpwin (line 221)
foundTopic = helpwin(topic, '', '', '-doc');
Error in doc (line 112)
if ~showHelpwin(topic)
138 [varargout{1:nargout}] = [helpStr moreInfo];
  2 件のコメント
Adam
Adam 2015 年 3 月 5 日
Do you have a function of your own named fileparts?
K E
K E 2015 年 3 月 5 日
Only this, C:\Program Files\MATLAB\R2014b\toolbox\matlab\iofun\fileparts.m

サインインしてコメントする。

採用された回答

Sean de Wolski
Sean de Wolski 2015 年 3 月 5 日
It looks like it's using a help command from an earlier release (fileparts does not currently support four outputs)
Try refreshing the path
restoredefaultpath
rehash toolboxcache
If it works after that;
savepath
  3 件のコメント
Sean de Wolski
Sean de Wolski 2015 年 3 月 5 日
restoredefaultpath is a nuke it from orbit approach.
K E
K E 2015 年 3 月 6 日
[If someone is thinking of trying this solution, I suggest copying pathdef.m to a temporary file first, so you can restore your personal path directories afterward.]

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by