Sierpinski Fractal Triangle
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);
Citar como
Víctor Martínez-Cagigal (2024). Sierpinski Fractal Triangle (https://www.mathworks.com/matlabcentral/fileexchange/50417-sierpinski-fractal-triangle), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Mathematics > Fractals >
Etiquetas
Agradecimientos
Inspiración para: patternMaker( numSides, numPoints, stepFraction, randSeed )
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.