Publish dependent and called functions
by Nick Angelini
26 Oct 2011
(Updated 13 Feb 2012)
Publish explicitly called functions not found in the MATLAB root. See mfile for limitations.
|
Watch this File
|
| File Information |
| Description |
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
output.
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)
Inputs:
* 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.
Outputs:
* new_doc => the final html document with attached subfunctions.
Name is the root file name with "_withfuncs" appended. |
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.13 (2011b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 10 Jan 2012 |
Version 2
# added ability to pass additional functions as a cell array to be published.
# added '-calltree' opition to the depfun call to find the functions
passed into other functions like ode's and quad. |
| 20 Jan 2012 |
Changed title |
| 23 Jan 2012 |
Added support for displaying published html document if no output variable is specified. |
| 23 Jan 2012 |
Added support for displaying published html document if no output variable is specified. |
| 13 Feb 2012 |
added ability to remove mex files from output |
|
Contact us at files@mathworks.com