File Exchange

image thumbnail

Building a Forest of Trees in MATLAB

version 1.0.0 (70.2 KB) by Ameer Hamza
This live script demonstrates the use of handle classes by creating and visualizing tree structures in MATLAB.

6 Downloads

Updated 18 Jul 2018

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The Forest of Trees Live Script demonstrates how to use handle classes and object oriented programming in MATLAB to construct custom data structures and uses MATLAB graphics to visualize and explain the tree data structure. The Live Script also makes use of numeric sliders to allow the user to customize their tree, and see how changing each option affects the resulting tree by watching the graphical output change in response to the slider. Submitted as part of the MATLAB Online Live Editor Challenge 2018.

Comments and Ratings (1)

Shuai Li

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor