how to save decision tree view (classification tree viewer) ?

5 ビュー (過去 30 日間)
Abdullah
Abdullah 2013 年 3 月 23 日
回答済み: Javier Valdes 2018 年 7 月 31 日
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.

回答 (5 件)

Tom Lane
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.

Abdullah
Abdullah 2013 年 3 月 23 日
It is a classification tree viewer. So there is no any "Save As" option on File menu.
  1 件のコメント
Tom Lane
Tom Lane 2013 年 3 月 24 日
Are you on Windows? I'm looking at the viewer right now. It's a figure, and has a File menu, with items New, Open, Close, Save, Save As, ...

サインインしてコメントする。


Abdullah
Abdullah 2013 年 3 月 24 日
Is there anybody can answer my problem?

Sergey
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.

Javier Valdes
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.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by