Code covered by the BSD License  

Highlights from
graphViz4Matlab

image thumbnail

graphViz4Matlab

by

 

02 Oct 2008 (Updated )

Display a directed or undirected graph in a Matlab figure window.

graphViz4MatlabDEMO3.m
adj = rand(4) > 0.5;
descriptions = {'First Random Node','Yet another node','The thrid one','The final node'};
colors = [0 0.5 0.2];  % either use string names for colors or normalized rgb values
graphViz4Matlab('-adjMat',adj,'-nodeDescriptions',descriptions,'-nodeColors',colors);

% double click on the nodes to see and edit descriptions. 

Contact us