Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Generation of decision trees in Matlab possible ?
Date: Tue, 11 Nov 2008 09:02:14 -0500
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <gfc396$is1$1@fred.mathworks.com>
References: <gfbigi$969$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1226412134 19329 144.212.105.187 (11 Nov 2008 14:02:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 11 Nov 2008 14:02:14 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:500204



"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