Rubik's Cube Simulator and Solver

This program simulates, manipulates and solves all rubik's cubes. Includes webcam recognition.

Download
Download

You are now following this Submission

Cite As

Joren Heit (2026). Rubik's Cube Simulator and Solver (https://www.mathworks.com/matlabcentral/fileexchange/31672-rubik-s-cube-simulator-and-solver), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Rubik's Cube in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.9.0

Updated screenshot (Windows version), minor bugfixes

Download
1.8.0

Added parity.m, which I forgot to include in the last version.

Download
1.6.0

Major changes! New, more efficient solving mechanism, supporting 2x2x2, 3x3x3 and 4x4x4 cubes. New button lay-out and extensive explanatory pdf.

Download
1.5.0

Added option to solve cube using inverse scramble (higher dimension cubes can be solved now). Option to display row numbers on the cube. Added full validity check when editing the cube manually.

Download
1.4.0

Improved step 1 in the solving algorithm, has resulted in more stable solve time (0-2 sec).

Download
1.2.0

Added Save/Open functionality.
Added manual method for entering/editing the state and improved Webcam-function using this method (manual correction of captured state).

Download
1.1.0

Removed a couple of bugs, improved the ouput solution + animation of the solution. Added the 'Undo' button and option to hide current scramble.

Download
1.0.0

Download