Plot Bayes tree within matlab ! (dot -> png -> imread -> imshow).
parent
107d293ed7
commit
b95210a5f0
|
@ -0,0 +1,8 @@
|
|||
function plotBayesTree(bayesTree)
|
||||
% plotBayesTree saves as dot file, renders, and shows as image
|
||||
% Needs dot installed
|
||||
|
||||
bayesTree.saveGraph('/tmp/bayesTree.dot')
|
||||
!dot -Tpng -o /tmp/dotImage.png /tmp/bayesTree.dot
|
||||
dotImage=imread('/tmp/dotImage.png');
|
||||
imshow(dotImage)
|
Loading…
Reference in New Issue