File Exchange

image thumbnail

Sierpinski Fractal Triangle

version 2.0.0.0 (3.71 KB) by Víctor Martínez-Cagigal
Bearable algorithm which provides a Sierpinski Fractal Triangle image.

20 Downloads

Updated 11 Jan 2018

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:
sierpinski_triangle(6);

Cite As

Víctor Martínez-Cagigal (2019). Sierpinski Fractal Triangle (https://www.mathworks.com/matlabcentral/fileexchange/50417-sierpinski-fractal-triangle), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

oh nevermind. i think i got it. :)

Updates

2.0.0.0

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

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