1.6K Downloads
Updated 31 Mar 2003
No License
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
powerfull machine.
Warning! Don`t use it for big "n" : My computer(pentium 4) have got stuck for n = 14 .
Cite As
Valery Garmider (2023). ndimcube (https://www.mathworks.com/matlabcentral/fileexchange/3174-ndimcube), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | update |