MATLAB 3D maze

Generates a maze, renders it in 3D, and traverses it endlessly.


Updated 10 Oct 2015

View License

Inspired by a certain screensaver from the 1990s, this function generates a maze using the tried-and-true depth-first search approach, renders it in 3D (including a "growing walls" animation), and wanders around in it using the left-hand wall-following navigation strategy.

Cite As

Luke Gane (2023). MATLAB 3D maze (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!

MATLAB 3D maze/

Version Published Release Notes