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.
Mathworlds (2021). Sierpinski triangle (2D,3D,any triangle shape,option double) (https://github.com/NicolasDouillet/sierpinski_triangle/releases/tag/v4.0), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
Cover image is an exemple of the 'double' option use on at iteration #2. Triangles have different sizes and then their edge lenghts.
+ option double Sierpinski
Default maximum number of iterations (nb_max_it) set to 9. Increase it line 125.