"help" does not work

99 次查看(过去 30 天)
Ravi
Ravi 2025-11-4,19:29
评论: Ravi 2025-11-7,13:12
I noticed this in R2025B. "help <myfunction>" just displays two blank lines, not the comments on top of <myfunction.m>. This m-file is in a directory at the beginning of my path.

回答(1 个)

Matt J
Matt J 2025-11-4,19:46
Possibly help.m is calling a function which you have shadowed. You will probably have to use dbstep to track this, or the equivalent Matlab Editor button:
  24 个评论
Torsten
Torsten 2025-11-6,1:32
编辑:Torsten 2025-11-6,2:29
If they are successful finding the cause of the problem, please report their solution here to help other MATLAB users with the same problem.
Ravi
Ravi 2025-11-7,13:12
They haven't been able to find anything yet. The one thing they asked me to do was to run
>>ver -support
I got this: "Java Version: Java is not enabled" as one of the responses. I wonder if that is a problem? Also, as a test, I installed MATLAB on a completely different computer. A DELL instead of an HP. I got the same issue, i.e., "help" not working for myfunction.
Let's see if Mathworks can get to the bottom of this...
By the way, "doc myfunction" does not show anything. At least when I click on "View code for myfunction.m" I see the function text, which means it is pointing to the right function.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品


版本

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by