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
Cite As
Jeff (2024). Maze 3D (https://www.mathworks.com/matlabcentral/fileexchange/33295-maze-3d), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Gaming > Strategy & Logic >
- MATLAB > Mathematics > Graph and Network Algorithms > Shortest Path > Labyrinth problems >
Tags
Acknowledgements
Inspired by: Maze
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.2.0.0 | Added the "y" option, with is a labyrinth where there can be loops (you can end up circling around back to the start) |
||
1.1.0.0 | added the ability to reduce the number of holes between levels by adding a number after the character pattern |
||
1.0.0.0 |