To render n - dimensional cube type "ndimcube(n)"
On the screenshot you see a render
of "12-dimensional cube".
Rendering is processed recursively,
by copying "n-1" dim.cube and connecting the vertices of the two copies to get an "n" dimcube .
Interesting issue : it can be proved ,
that for n , that is different from the power of 2(i.e. 2^k), the render includes the center point of symmetry.
I couldn't however prove the opposite :
for n = 2^k ,the render doesn`t include the center .
As you`ll see, for n=2,4 and 8 ,
this is true. However I wasn`t able
to check it for n=16 on my computer.
Maybe it could be done on more
Warning! Don`t use it for big "n" : My computer(pentium 4) have got stuck for n = 14 .
Valery Garmider (2023). ndimcube (https://www.mathworks.com/matlabcentral/fileexchange/3174-ndimcube), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!