/SierpinskiTriangle

A MATLAB script which builds a 2D and 3D Sierpinski Triangle

Primary LanguageMATLAB

SierpinskiTriangle

A MATLAB script which builds a 2D and 3D Sierpinski Triangle

The first section builds a 2D Sierpinski Triangle. The second section adapts the Sierpinski procedure for the third dimension, which allows the creation of a Sierpinski Pyramid.