This code is a virtual (matlab) variant ot the rubik's Cube.
You can download it here.
Run 'rubiksCube(n)', where n is the number of random rotations applied to the cube.
For procrastinating adults only.