how to save decision tree view (classification tree viewer) ?
조회 수: 5 (최근 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!