File Exchange

image thumbnail


version 2.0 (229 KB) by Mathworlds
Function to compute display and save the Sierpinski fractal cube at any iteration / depth level. Made of four Sierpinski tetrahedra.

1 Download

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 Sierpinskube' or 'help Sierpinskube' 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). Sierpinskube (, GitHub. Retrieved .

Comments and Ratings (1)


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('jet');

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!