There are many other options for m2html, see the help for a list:
>> help m2html
Let's see some of them. One of the key features of m2html is the fact
that you can fully customize the output layout, thanks to the use of HTML templates
(*.tpl files in C:\matlab\m2html\templates\*). You can modify them
as you want to fit your needs. At this moment, two templates are provided: the default
one (blue) and a frame one. Let's use the frame version (you need to delete
a previously generated documentation, see after).
>> m2html('mfiles','m2html', 'htmldir','doc', 'recursive','on', 'global','on',
'template','frame', 'index','menu');
This template has a a singularity: you also need to modify the basename of the HTML index
files (we chose menu here, index is now the frame file). Also note that
when you use a template, all of its elements (images, CSS files, ...) are copied to the
output directory if they are not present. So when you change the template, you'd better
delete a previous generated HTML documentation. So to make the previous example work, you
need to delete the C:\matlab\doc folder before.
Now let's build graph dependencies. To do that, you need to install the dot tool
from GraphViz. Then you can set the graph option to on:
>> m2html('mfiles','m2html', 'htmldir','doc', 'recursive','on', 'global','on',
'template','frame', 'index','menu', 'graph','on');
The HTML output should look like this.
Here is a dependency graph of the whole m2html toolbox.
This tutorial is over, it should work in the same way with your own MATLAB toolboxes.
Please also read the README file provided with this toolbox and contact me by
email if you have a specific question.