doc
help · scripts/help/doc.m
DOC Open HTML documentation for a topic, or fall back to help().
DOC TOPIC displays documentation for TOPIC (char or string scalar).
DOC with no arguments shows the help landing text.
MATLAB R2026a behaviour locked by DOC-002 (nexus#2068):
* Zero outputs. Requesting outputs raises MATLAB:TooManyOutputs
(or MATLAB:maxlhs when the engine rejects nargout before entry).
* Non-text inputs print "Input is a value of type CLASS." and return
(no error), matching help()/doc() R2026a.
* When an embedded documentation viewer handles the topic, DOC
returns after that hand-off.
* Otherwise DOC falls back to HELP(TOPIC) (headless-safe; no browser).
See also: help, helpwin, lookfor, docsearch.