Effacer les filtres
Effacer les filtres

How can I save the figure of a classification and regression tree generated with VIEW command in Statistics Toolbox 6.1 (R2007b)?

2 vues (au cours des 30 derniers jours)
I have generated a classification and regression tree in Statistics Toolbox 6.1 (R2007b) and use the VIEW command to plot it:
load fisheriris;
t = classregtree(meas,species,'names',{'SL' 'SW' 'PL' 'PW'});
view(t)
I would like to save this picture to file.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 15 Mai 2013
It is possible to save the tree picture by using the handle of the Figure that shows the tree. First you need to ask for the handle with the VIEW method:
h = view(t);
Then you can use any of the save or print functions that work on a figure handle, for instance:
saveas(h, 'myTree.png')

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by