Automatically generates 3D mazes, then you try to solve. You can specify the dimensions, and the branching pattern. The maze pattern is one of the outputs, so you can save maze layouts that you want to use again. Look in the file header for some recommended examples.
If you give up, press P to see the true path through the maze. Look in header for other keystroke commands
A modified version of Rodney Meyer's maze.m
Jeff (2021). Maze 3D (https://www.mathworks.com/matlabcentral/fileexchange/33295-maze-3d), MATLAB Central File Exchange. Retrieved .
Inspired by: Maze
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!