This maze generator generates a maze composed of several component types. The maze is generated by random iterative swapping of interchangeable parts as well as random attachments of new parts. I've also added functions for displaying and/or saving the generated maze as an image. The code is slow however it is meant to be more of one approach to maze generation rather than anything else.
To learn how to use the functions please try running the example_script.m script. of more reading on this go to https://easterneuropeanbarbarian.wordpress.com/2016/01/24/matlab-maze-generator/
Adam Ivansky (2021). Random maze generator (https://www.mathworks.com/matlabcentral/fileexchange/58803-random-maze-generator), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!