- Structures: http://www.mathworks.com/help/matlab/ref/struct.html
- Cell arrays: http://www.mathworks.com/help/matlab/cell-arrays.html
- Classes: http://www.mathworks.com/help/matlab/ref/classdef.html
What is the best matlab data structure to represent a decision tree?
조회 수: 5 (최근 30일)
이전 댓글 표시
I want to be able to access the level of the tree and the number of nodes and the information of the nodes after a split. What is the best data structure to use?
Please explain in some detail and in simple terms. I am new to matlab.
댓글 수: 0
채택된 답변
Jordan Ross
2016년 9월 21일
Hi Kunal,
MATLAB offers several resources more creating data structures such as a tree. Some useful resources I can suggest are:
I would also suggest taking a look at the MathWorks documentation for object-oriented programming in MATLAB: http://www.mathworks.com/help/matlab/object-oriented-programming.html
댓글 수: 0
추가 답변 (1개)
Steven Lord
2016년 9월 21일
댓글 수: 1
Rik
2021년 9월 1일
It seems the link is dead (for newer releases) due to the split into separate classification trees and regression trees pages.
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!