Sierpinski Fractal Triangle

Bearable algorithm which provides a Sierpinski Fractal Triangle image.


Updated Thu, 11 Jan 2018 16:27:29 +0000

View License

This function provides a bearable algorithm for generating a fractal image, in particular, the Sierpinski Triangle. The function opens a new figure and plots the result for a given number of iterations, which must be greater or equal than 0. It should be taken into consideration that the more iterations, the more computation time.
Example of use:

Cite As

Víctor Martínez-Cagigal (2023). Sierpinski Fractal Triangle (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
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

2.0. Iteration 0 is also enabled and error detection has been implemented.