From: cannot Ribeiro on 12 May 2010 14:19 you can not. You have to write a script to do it. pedro "Amir Hossein " <a.gharehgozli(a)gmail.com> wrote in message <gncsih$eu9$1(a)fred.mathworks.com>... > could you please tell me how i can show node numbers in my plot using treeplot? > > > "Steven Lord" <slord(a)mathworks.com> wrote in message <gfc396$is1$1(a)fred.mathworks.com>... > > > > "Claus " <il_consigliere(a)excite.com> wrote in message > > news:gfbigi$969$1(a)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(a)mathworks.com > >
From: cannot Ribeiro on 12 May 2010 14:20 you can not. You have to write a script to do it. pedro "Amir Hossein " <a.gharehgozli(a)gmail.com> wrote in message <gncsih$eu9$1(a)fred.mathworks.com>... > could you please tell me how i can show node numbers in my plot using treeplot? > > > "Steven Lord" <slord(a)mathworks.com> wrote in message <gfc396$is1$1(a)fred.mathworks.com>... > > > > "Claus " <il_consigliere(a)excite.com> wrote in message > > news:gfbigi$969$1(a)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(a)mathworks.com > >
|
Pages: 1 Prev: cellfun to find index? Next: how to plot 2D graphs in multiple 3D levels |