image thumbnail

Tree data structure as a MATLAB class

version 1.4.0.0 (29.2 KB) by Jean-Yves Tinevez
A per-value class that implements a generic tree data structure.

8.5K Downloads

Updated 30 Sep 2020

From GitHub

View license on GitHub

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/

Cite As

Jean-Yves Tinevez (2021). Tree data structure as a MATLAB class (https://github.com/tinevez/matlab-tree), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: BiofilmQ

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.