Sierpinski triangle (2D,3D,any triangle shape,option double)

Function to compute, display, and save the Sierpinski triangle defined by three given points of the 2D or 3D space, at any iteration number.

https://github.com/NicolasDouillet/sierpinski_triangle

You are now following this Submission

Please check the examples tab (.mlx doc) here on the right for a complete description.
Once downloaded, typewrite 'doc Sierpinski_triangle' or 'help Sierpinski_triangle' in Matlab console for support.
For 2D point inputs, just padd the point Z coordinate with a zero (see example #2)
To benefit from the file documentation attached, be sure to download the file, not to just copy and paste it.

Cite As

Nicolas Douillet (2026). Sierpinski triangle (2D,3D,any triangle shape,option double) (https://github.com/NicolasDouillet/sierpinski_triangle/releases/tag/v4.0), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

See release notes for this release on GitHub: https://github.com/NicolasDouillet/sierpinski_triangle/releases/tag/v4.0

3.0

See release notes for this release on GitHub: https://github.com/NicolasDouillet/sierpinski_triangle/releases/tag/v3.0

2.0

See release notes for this release on GitHub: https://github.com/NicolasDouillet/sierpinski_triangle/releases/tag/v2.0

1.3

typo, help, doc, description.

1.2

Title

1.1

Add one non equilateral triangle example. update help, doc, description.

1.0.0

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.