how to save decision tree view (classification tree viewer) ?
Mostrar comentarios más antiguos
I create a decision tree for classification. After viewing the tree in matlab, how do I save the view in a png or tiff format ? I couldn't find any help for this anywhere.
Respuestas (5)
Tom Lane
el 23 de Mzo. de 2013
0 votos
On Windows at least, choose "Save As" from the File menu. You can save a .fig file, but also various graphics file types.
Abdullah
el 24 de Mzo. de 2013
0 votos
Sergey
el 19 de Ag. de 2013
Try this
TREE = classregtree(...);
h = view(TREE);
saveas(h,'filename','png');
PS: all 'set' options for object h applies, so you can define image size, type etc... Hope it helps.
Javier Valdes
el 31 de Jul. de 2018
0 votos
In the 'Tips' section of the following link (https://www.mathworks.com/help/stats/compactregressiontree.view.html) there is an option to get the handles of the decision tree viewer and to save it.
Categorías
Más información sobre Get Started with MATLAB en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!