I got something wrong with the hep document

When I use andhelp command in the command window, I cannot open the corresponding help file by clicking the corresponding link. But I can open the help file by using the F1 button. When I use the and doc command in the command window, I get the following error. Error using split. The first parameter must be text.

 採用された回答

Steven Lord
Steven Lord 2022 年 4 月 17 日

1 投票

Check if you've written or downloaded a split.m file that's taken precedence over the split function included in MATLAB.
which -all split
/MATLAB/toolbox/matlab/strfun/split.m split is a built-in method % Shadowed string method split is a Java method % Shadowed java.lang.String method /MATLAB/toolbox/matlab/bigdata/@tall/split.m % Shadowed tall method /MATLAB/toolbox/matlab/datatypes/calendarDuration/@calendarDuration/split.m % Shadowed calendarDuration method /MATLAB/examples/wavelet/data/@wtree/split.m % Shadowed wtree method /MATLAB/examples/wavelet/data/@edwttree/split.m % Shadowed edwttree method /MATLAB/examples/wavelet/data/@rwvtree/split.m % Shadowed rwvtree method /MATLAB/toolbox/wavelet/wavelet/@dtree/split.m % Shadowed dtree method /MATLAB/toolbox/wavelet/wavelet/@wdectree/split.m % Shadowed wdectree method /MATLAB/toolbox/wavelet/wavelet/@wptree/split.m % Shadowed wptree method
If so rename your split.m (and if you've downloaded a toolbox that depends on that split.m, update the functions that call it to call the renamed function or ask the author to update them.)

2 件のコメント

Matt J
Matt J 2022 年 4 月 17 日
Since this has become such a common hazard, I think Mathworks ought to remove mcode dependencies from critical functions like help and doc.
junhui hua
junhui hua 2022 年 4 月 17 日
Thank you very much for your answer, after setting the include path to default, everything works fine. Thank you very much.This problem may be caused by a toolbox I downloaded.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDownloads についてさらに検索

製品

リリース

R2022a

タグ

質問済み:

2022 年 4 月 17 日

コメント済み:

2022 年 4 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by