"help" does not work

99 visualizzazioni (ultimi 30 giorni)
Ravi
Ravi il 4 Nov 2025 alle 19:29
Commentato: Ravi circa 5 ore fa
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.

Risposte (1)

Matt J
Matt J il 4 Nov 2025 alle 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 Commenti
Torsten
Torsten circa 3 ore fa
Modificato: Torsten circa 2 ore fa
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 circa 5 ore fa
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.

Accedi per commentare.

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Prodotti


Release

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by