Sierpinski Sponge

版本 1.0.0.0 (1.8 KB) 作者: Moses Boone
Generates the Sierpinski Sponge.
3.9K 次下载
更新时间 2003/6/4

无许可证

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.

引用格式

Moses Boone (2024). Sierpinski Sponge (https://www.mathworks.com/matlabcentral/fileexchange/3524-sierpinski-sponge), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fractals 的更多信息
致谢

参考作品: ClassicalFractals.m

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0