how to save decision tree view (classification tree viewer) ?
7 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(5 个)
Tom Lane
2013-3-23
On Windows at least, choose "Save As" from the File menu. You can save a .fig file, but also various graphics file types.
0 个评论
Sergey
2013-8-19
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.
0 个评论
Javier Valdes
2018-7-31
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!