MATLAB Function Reference | ![]() ![]() |
Get or set root directory for MATLAB help files
Graphical Interface
As an alternative to the docroot
function, select File -> Preferences -> Help and set the Documentation location.
Syntax
Description
docroot
displays the current value for docroot
, the root directory for MATLAB help files. This is the directory where the MATLAB Help browser looks for the online documentation to display.
docroot('newdocroot')
sets the root directory for MATLAB help files to newdocroot
, where newdocroot
is the full pathname to the help
directory. For example, type docroot('d:/matlabr13/help'). One useful application is setting docroot
in your startup
.m
file.
docroot('newdocroot', 'cdrom')
sets the root directory for MATLAB help files on the MATLAB documentation CD to newdocroot
, where newdocroot
is the full pathname to the help
directory on your MATLAB documentation CD. For example, type docroot('z:/help', 'cdrom').
Examples
You can include a docroot
statement in your startup.
m file.
See Also
![]() | docopt | dos | ![]() |