4.6

4.6 | 5 ratings Rate this file 25 Downloads (last 30 days) File Size: 16.2 KB File ID: #27608
image thumbnail

GraphViz-like tools for MATLAB

by Jonathan Lister

 

14 May 2010 (Updated 15 May 2010)

Generate a function or script file call tree and plot it in a figure.

| Watch this File

File Information
Description

mkdotfile creates a GraphViz dot language representation of the dependencies of a function. mGraphViz plots the directed graph onto a figure. These functions are a small part of a larger project to implement a doxygen like code documentation system within MATLAB that doesn't have any external program dependencies.

Additional Acknowledgments:
mkdotfile
Inspired by mdot of M2HTML
by Guillaume Flandin <Guillaume@artefact.tk>
 (Which I can no longer find on the exchange)

Acknowledgements

Fdep: A Pedestrian Function Dependencies Finder and Matlab Graph Viz Layout Importer inspired this file.

MATLAB release MATLAB 7.10 (R2010a)
Other requirements fdep : http://www.mathworks.com/matlabcentral/fileexchange/17291-fdep-a-pedestrian-function-dependencies-finder
Tags for This File  
Everyone's Tags
call graph, docsgen, dot file, dot language, doxygen, graphviz, publish
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
16 Jan 2013 Aurelien Queffurust

Very nice and useful to write some developer's guide.

31 May 2012 Jonathan Lister

Sorry for the lack of examples, and the delay in response. I've not been able to access this account until recently. I will try to include something new in the near future.

30 Apr 2012 Michael Quinn

I agree that an example would be nice to show the basic usage. It took me a few minutes to figure this out. Here is my simple example:

example:
>> mkdotfile('yourfile.m', 'outfile.dot')
>> ha = axes;
>> mGraphViz('outfile.dot',ha)

24 Feb 2012 reez all

can anyone post the example to used this file? i still not understand to use it.

15 May 2010 Jonathan Lister

Thanks us. fdep is a great function to build upon many kudos to you. My intent is to use fdep as the core of a new documentation system for MATLAB. I've started with M2HTML, but have ripped out a lot of the author's original code in favor of fdep. I'll look into more error checking, if you have anything in mind please send me a note jlister1 @ utk . edu

14 May 2010 Jim Dowd  
14 May 2010 us

sorry, somehow the comment got lost...

1) it would be great if the size of the arrow head could be set by an option as well...
2) it would be great to have a bit more error checking on some of the options...
[x) nice use of the pedestrian fdep, by the way...]

us

14 May 2010 us  
Updates
15 May 2010

added fdep in the Other Requirements field

Contact us