登录论坛

查看完整版本 : An Interactive Version of colorcubes - Cleve Moler on Mathematics and Computing


poster
2022-10-22, 05:20
A 231-character static version of colorcubes (https://www.mathworks.com/matlabcentral/communitycontests/contests/5/entries/11543) in the current MiniHack (https://www.mathworks.com/matlabcentral/communitycontests/contests/5/entries) generated quite a bit of interest. So I am posting the full version, where you can change number of cubes and the view point, at this link (https://blogs.mathworks.com/cleve/files/colorcubes.m).

Contents


Animation (https://www.labfans.com/bbs/#79219f01-ed62-49d4-9295-edb5c398fb1c)
Quiz (https://www.labfans.com/bbs/#6c3c181f-e905-4585-aea3-f06e84c20b68)

Animation

http://blogs.mathworks.com/cleve/files/colorcubes.gif

Quiz

What is the color of the cubelet, or cubelets, in the center?


Get the MATLAB code (requires JavaScript) (javascript:grabCode_e6e3e2e2f1834d31a53df52268600b79())

Published with MATLAB® R2022a





More... (https://blogs.mathworks.com/cleve/2022/10/21/an-interactive-version-of-colorcubes/?s_tid=feedtopost)