wolffd@0: function gvizPath = setupPath() wolffd@0: % Attempt to add GraphViz to the system path, (temporariliy within the wolffd@0: % matlab session only). wolffd@0: gvizPath = 'unknown'; wolffd@0: if ~ispc() wolffd@0: return wolffd@0: end wolffd@0: try %#ok wolffd@0: gvizPath = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\AT&T Research Labs\Graphviz', 'InstallPath'); wolffd@0: addtosystempath(fullfile(gvizPath, 'bin')); wolffd@0: end wolffd@0: end