Sierpinski triangle (2D,3D,any triangle shape,option double)
Version 4.0 (202 KB) by
Nicolas Douillet
Function to compute, display, and save the Sierpinski triangle defined by three given points of the 2D or 3D space, at any iteration number.
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 .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| 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.
