A Rubiks Cube unwrapped onto a 2D plane.


Updated 10 Aug 2005

No License

Imagine taking a Rubik's Cube and unwrapping its faces from the 3D cube and spreading it out on a table. However, you can still manipulate it in the same way. That's flatRubiks!

I found coding this to be more challenging than a 3D cube would have been. Plus there are already some fantastic MATLAB 3D Rubik's Cubes out there. I also found, that solving this guy really works your brain, and is in general harder.

The zip file includes one really long m-file, and a help HTML file. I would appreciate any comments, questions!

Cite As

Trent Russi (2023). flatRubiks (https://www.mathworks.com/matlabcentral/fileexchange/8260-flatrubiks), MATLAB Central File Exchange. Retrieved .

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

Inspired by: Rubik Cube Game

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes