Sierpinski Sponge

Generates the Sierpinski Sponge.
3,9K téléchargements
Mise à jour 4 juin 2003

Aucune licence

The Sierpinski Sponge is a fractal image based on the Cantor Set. Cantor's fractal is based on a removing the middle third of a line segment, resulting in two new line segments of equal length. The middle third of these two segments is then removed, resulting in four new line segments.

The process is repeated to the desired level of iterations. The Sierpinski Carpet, a two-dimensional version of the Cantor Set, starts with a square. The Square is divided into nine equal sized squares and the middle square is removed for the first iteration. Then the remaining eight squares are each divided into nine squares, and the middle square is again removed for the second iteration.

The Sierpinski Sponge is the three-dimensional extrapolation of the carpet. The fractal image starts with a cube. The cube is then divided into twenty-seven equal sized cubes, and the center cube and the middle cube of each face is removed, leaving only the cubes on edges and corners. This is the first iteration. The process is applied to the remaining twenty cubes for the second iteration, and so on.

The Sierpinski Sponge is a fractal with some unique properties. Like the Sierpinski Gasket, as the level of iterations approaches infinity, the area of the sponge approaches zero, while the perimeter approaches infinity. This is because with each iteration new edges are added and volume is removed.

Citation pour cette source

Moses Boone (2024). Sierpinski Sponge (https://www.mathworks.com/matlabcentral/fileexchange/3524-sierpinski-sponge), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Fractals dans Help Center et MATLAB Answers
Remerciements

Inspiré par : ClassicalFractals.m

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0