Thread Subject: Generation of decision trees in Matlab possible ?

Subject: Generation of decision trees in Matlab possible ?

From: Claus

Date: 11 Nov, 2008 09:16:02

Message: 1 of 3

I am writing some code that will provide probabilities to a decision tree, such as this one:
http://www.time-management-guide.com/decision-tree.html

I don't know how to generate a pleasing tree in matlab, except to recreate something like the link above using a lot of LINE commands. I am looking for a better idea. Can you help?

Thanks in advance,

Claus

Subject: Generation of decision trees in Matlab possible ?

From: Steven Lord

Date: 11 Nov, 2008 14:02:14

Message: 2 of 3


"Claus " <il_consigliere@excite.com> wrote in message
news:gfbigi$969$1@fred.mathworks.com...
>I am writing some code that will provide probabilities to a decision tree,
>such as this one:
> http://www.time-management-guide.com/decision-tree.html
>
> I don't know how to generate a pleasing tree in matlab, except to recreate
> something like the link above using a lot of LINE commands. I am looking
> for a better idea. Can you help?

Neither of these options are exactly what you want, but Statistics Toolbox
has a classification tree object:

http://www.mathworks.com/access/helpdesk/help/toolbox/stats/bq4embr-1.html

Alternately, you might try using TREEPLOT or TREELAYOUT and rotating the
created tree:

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/treeplot.html

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/treelayout.html

--
Steve Lord
slord@mathworks.com

Subject: Generation of decision trees in Matlab possible ?

From: Amir Hossein

Date: 16 Feb, 2009 23:24:01

Message: 3 of 3

could you please tell me how i can show node numbers in my plot using treeplot?


"Steven Lord" <slord@mathworks.com> wrote in message <gfc396$is1$1@fred.mathworks.com>...
>
> "Claus " <il_consigliere@excite.com> wrote in message
> news:gfbigi$969$1@fred.mathworks.com...
> >I am writing some code that will provide probabilities to a decision tree,
> >such as this one:
> > http://www.time-management-guide.com/decision-tree.html
> >
> > I don't know how to generate a pleasing tree in matlab, except to recreate
> > something like the link above using a lot of LINE commands. I am looking
> > for a better idea. Can you help?
>
> Neither of these options are exactly what you want, but Statistics Toolbox
> has a classification tree object:
>
> http://www.mathworks.com/access/helpdesk/help/toolbox/stats/bq4embr-1.html
>
> Alternately, you might try using TREEPLOT or TREELAYOUT and rotating the
> created tree:
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/treeplot.html
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/treelayout.html
>
> --
> Steve Lord
> slord@mathworks.com
>

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
decision tree Claus 11 Nov, 2008 04:20:05
graph Claus 11 Nov, 2008 04:20:05
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com