BuildOctree

This file has a fix to a bug found in my previous submission under the same file name.

You are now following this Submission

Build an Octree representation of a set of (x,y,z) points in space. The function is called,

Octree = BuildOctree(x,y,z,MinCubeSide)

where,

[x_i, y_i, z_i], i = 1:N define points in space

and

MinCubeSide is the side length of the smallest cube to be used in the discretization. This will determine the number of levels of the tree.

The output structure Octree will contain the number of children, group center coordinate, cube side length, and nearest touching neighbors for each group at each level of the tree. The Octree is determined using a few, very simple equations.

Cite As

David (2026). BuildOctree (https://www.mathworks.com/matlabcentral/fileexchange/36782-buildoctree), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0