Tree data structure as a MATLAB class

版本 1.4.0.0 (30.1 KB) 作者: Jean-Yves Tinevez
A per-value class that implements a generic tree data structure.
9.1K 次下载
更新时间 2022/11/29

A tree is a hierarchical data structure where every node has exactly one parent (expect the root) and no or several children.
Along with this relational structure, each node can store any kind of data.

This class implements it using plain MATLAB syntax and arrays. Most useful methods are implemented, using overloading of MATLAB functions for tree objects.

For instance you can type:

>> find ( (a.^2 .* b) > (c - 5) & d )

with a, b, c and d being tree objects.

Very handy, trivial to use. A rather long tutorial is included to walk you through trees, and show how to make the best out of them.

The tutorial can be found here:
http://tinevez.github.io/matlab-tree/

引用格式

Jean-Yves Tinevez (2024). Tree data structure as a MATLAB class (https://github.com/tinevez/matlab-tree), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Construction 的更多信息
致谢

启发作品: BiofilmQ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.4.0.0

- Move to gihub
- Add some extra tuning capabilities to plots.

1.3.0.0

Put back the thumbnail.

1.2.0.0

- Iteration, plotting and string conversion can be done by forcing the children to be iterated in alphabetical (or any) order.
- Tree plotting hsa several new options to customize its look.
- Two new methods to condense and decondense a tree.

1.1.0.0

Fixed a severe bug in the chop method, noticed by Francisco Marquez Gutierrez (thanks!).

1.0.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库