| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Wavelet Toolbox |
| Contents | Index |
T = dtree(ORD,D,X) T = dtree(ORD,D,X,U) [T,NB] = dtree(...) T = dtree('PropName1',PropValue1,'PropName2',PropValue2, ...)
T = dtree(ORD,D,X) returns a complete data tree (DTREE) object of order ORD and depth D. The data associated with the tree T is X.
With T = dtree(ORD,D,X,U) you can set a user data field.
[T,NB] = dtree(...) returns also the number of terminal nodes (leaves) of T.
[T,NB] = dtree('PropName1',PropValue1,'PropName2',PropValue2,...) is the most general syntax to construct a DTREE object.
The valid choices for 'PropName' are
| 'order' |
Order of the tree |
| 'depth' |
Depth of the tree |
| 'data' |
Data associated to the tree |
| 'spsch' |
Split scheme for nodes |
| 'ud' |
User data field |
The split scheme field is an order ORD by 1 logical array. The root of the tree can be split and it has ORD children. If spsch(j) = 1, you can split the j-th child. Each node that you can split has the same property as the root node.
For more information on object fields, type help dtree/get.
Class DTREE (Parent class: NTREE)
| dtree |
Parent object |
| allNI |
All nodes information |
| terNI |
Terminal nodes information |
| Provide feedback about this page |
![]() | drawtree | dwt | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |