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일
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 Exchange에서 Downloads에 대해 자세히 알아보기

제품

릴리스

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