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.
37 Downloads
Updated Sun, 07 Feb 2021 17:02:09 +0000
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 (2024). Sierpinski triangle (2D,3D,any triangle shape,option double) (https://github.com/NicolasDouillet/sierpinski_triangle/releases/tag/v4.0), GitHub. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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.