Why is help() malfunctioning
2 views (last 30 days)
Matlab seems to know that the help command is there, at least as far as which() is concerned
>> which -all help
And yet, I get this,
>> help help
help not found.
Use the Help browser search field to search the documentation, or
type "help help" for help command options, such as help for methods.
Any idea why this is happening?
Matt J on 6 Dec 2020
I ran into this problem later. The problem turned out to be that Mathworks help.m file uses a command called strip(). This function was being shadowed by my own strip.m file that was higher in the path. Generally speaking, you need to be sure that help.m and its dependencies are higher on the path than any user-defined mfiles.
More Answers (1)
Steven Lord on 11 Nov 2019
The output you posted for help doc doesn't match the help text I see when I run that command. Did you post exactly what you see or did you paraphrase?
In release R2019a, what is the last line of your help.m file? In my installation it is a blank line, line 67. The copyright line (line 41) states 1984-2019. Can you confirm that you see the same?
In my installation, doc.m has 209 lines with line 209 being a blank line. The last function in doc.m is displayFile. The copyright line (line 45) reads 1984-2013. Can you confirm that you see the same?
I'm wondering if you accidentally copied versions of help.m file (and maybe doc.m) from an older release of MATLAB.