publishdepfun creates a single published html file with called
functions attached to the end of the root mfile. Hyperlinks will be
within a "Called Functions" in the Table of Contents area of the
published document that link to the called function. Functions that are
called that are under MATLABROOT are not included in the published
publishdepfun only goes one level deep....
Example: If fun1 calls fun2, fun2 will be published. If fun2 calls fun3,
fun3 will not be published.
Calling: new_doc = publishdepfun(func,opts)
* func => character string of root function or script ('Function1').
The ".m" is not needed.
* opts => is the list of options for the publishing. See publish.m help
for more information.
* add_fun => is a cell array of additional functions to be published.
* rm_fun => is a cell array of functions to remove from publish list.
* new_doc => the final html document with attached subfunctions.
Name is the root file name with "_withfuncs" appended.
Nick Angelini (2022). Publish dependent and called functions (https://www.mathworks.com/matlabcentral/fileexchange/33476-publish-dependent-and-called-functions), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!