4.5

4.5 | 4 ratings Rate this file 21 Downloads (last 30 days) File Size: 16.23 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

The author wishes to acknowledge the following in the creation of this submission:
fdep: a pedestrian function dependencies finder, MATLAB GraphViz Layout importer

MATLAB release MATLAB 7.10 (2010a)
Other requirements fdep : http://www.mathworks.com/matlabcentral/fileexchange/17291-fdep-a-pedestrian-function-dependencies-finder
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
14 May 2010 us  
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 Jim Dowd  
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

24 Feb 2012 reez all

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

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)

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.

Please login to add a comment or rating.
Updates
15 May 2010

added fdep in the Other Requirements field

Tag Activity for this File
Tag Applied By Date/Time
doxygen Jonathan Lister 14 May 2010 09:28:04
docsgen Jonathan Lister 14 May 2010 09:28:04
graphviz Jonathan Lister 14 May 2010 09:28:04
dot language Jonathan Lister 14 May 2010 09:28:04
dot file Jonathan Lister 14 May 2010 09:28:04
call graph Jonathan Lister 14 May 2010 09:28:04
publish Jonathan Lister 14 May 2010 09:28:04

Contact us at files@mathworks.com