RUBIK1

Version 1.0.0.0 (11.9 KB) by Nedialko
Simulates state-control-sequences applied onto a user-defined Rubik cube
1.3K Downloads
Updated 16 Nov 2009

View License

---------------------------------------------------------------
1. Intro: Why rubik1? (see the separate HTML documents in the links below for more & 'muy picante' details).

* In the mid-1970s, Erno Rubik (see below for much more details) sought a teaching tool to help his students understand 3D objects.

Compatible with the original goals of E.Rubik - the cube puzzle's inventor,

RUBIK1 is in the class of demos, providing handsome ways to learn

programming GUI's & 3D graphics in Matlab.

* Alexander Mueller had done a number of very appropriate 'moves' in his submission
(http://www.mathworks.com/matlabcentral/fileexchange/8461).

** However, in rubik1 you will not find a cut and paste of Alex's original.
There are many changes in either goals (rubik1 is NOT a game per se!), programming gadgetry and mathematical approaches to 3D graphics and transforms. For example, Alex's cube is changing its 'skin' colors, a bit like a chameleon.

A convenient numbering of the faces, very compatible with the <x>, <y> and <z> space axes,
greatly simplifies the code - making it straightforward and flexible: any cube from 2x2x2 to the NxNxN of your own fancy.

** Finally,
RUBIK1 uses & further illustrates p_json
(http://www.mathworks.com/matlabcentral/fileexchange/25713-highly-portable-json-input-parser)

---------------------------------------------------------------
2. Test & illustrate moves

* See the detailed help to rubik1

* See also the multitude of examples provided in the sample calling script B1G

* See
http://sites.google.com/site/sim4stim/2clicks/test0

which is the HTML publication of the results from running the provided script B1G.m

---------------------------------------------------------------
3. Links:

http://sites.google.com/site/nedialkokrouchevpages/rubik1/nnotes
http://sites.google.com/site/sim4stim/2clicks/test0
http://sites.google.com/site/nedialkokrouchevpages/rubik/why

The Gordian Knot

http://en.wikipedia.org/wiki/Gordian_Knot
http://www.alexander-the-great.co.uk/gordian_knot.htm

Much more on The Rubik's Cube

... which is a 3-D mechanical puzzle invented in 1974 by the Hungarian sculptor and professor of architecture Erno Rubik.
There are exactly 43,252,003,274,489,856,000 permutations.

google: solve Rubik

http://peter.stillhq.com/jasmine/rubikscubesolution.html

http://www.ws.binghamton.edu/fridrich/Mike/middle.html
http://www.ws.binghamton.edu/fridrich/cube.html
http://www.ws.binghamton.edu/fridrich/Mike/orient.html
http://www.ws.binghamton.edu/fridrich/Mike/permute.html

google: Matlab 3D simulation rubik
or: 3D source code simulation rubik

http://arcus.sourceforge.net/download.html

google: Rubik wiki

http://en.wikipedia.org/wiki/Rubik%27s_Cube
http://en.wikipedia.org/wiki/Ern%C5%91_Rubik
http://en.wikipedia.org/wiki/Optimal_solutions_for_Rubik%27s_Cube

http://en.wikipedia.org/wiki/Cayley_graph

http://en.wikibooks.org/wiki/How_to_solve_the_Rubik%27s_Cube
http://en.wikibooks.org/wiki/How_To_Solve_Any_NxNxN_Rubik%27s_Cube

http://vanderblonk.com/wp-content/plugins/rubik/cubeapplet.php?stickers=F2L&alg=BU%27B%27UR%27URU%27

Cite As

Nedialko (2024). RUBIK1 (https://www.mathworks.com/matlabcentral/fileexchange/25863-rubik1), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Rubik's Cube in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Highly portable JSON-input parser

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0