File Exchange

image thumbnail

Sierpinski octahedron

version 3.0 (41.2 KB) by Mathworlds
Function to compute displays and save the Sierpinski octahedron fractal, at any iteration number / depth level.


Updated 20 Nov 2020

From GitHub

View Version History

View license on GitHub

Please first check the examples tab (.mlx doc) here on the right for a complete description.

Once downloaded, typewrite 'doc Sierpinski_octahedron' or 'help Sierpinski_octahedron' in Matlab console for support.

To benefit from the file documentation attached, be sure to download the file, not to just copy and paste it.

Cite As

Mathworlds (2021). Sierpinski octahedron (, GitHub. Retrieved .

Comments and Ratings (1)


Default maximum number of iterations (nb_max_it) set to 7. Increase it line 92. Color rendering used for this cover image is radius based, i.e. by computing each vertex distance to the origin : C = sqrt(sum(V.^2,2));
trisurf(T,V(:,1),V(:,2),V(:,3),C); colormap('hot');

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

Community Treasure Hunt

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

Start Hunting!