mapMaze
Syntax
Description
generates a random 2-D maze map,
map
= mapMazemap
, as a binaryOccupancyMap
object with a width and height of
50 meters and a resolution of 5 cells per meter. The maze map contains straight passages,
turns, and T-junctions with a passage width of 4 grid cells and wall thickness of 1 grid
cell.
generates a map
= mapMaze(passageWidth
)binaryOccupancyMap
of a maze of the default size and resolution
with a specified passage width, passageWidth
, in number of grid
cells.
specifies a wall thickness, map
= mapMaze(passageWidth
,wallThickness
)wallThickness
, in number of grid
cells.
specifies options using one or more name-value pair arguments in addition to any combination
of input arguments from previous syntaxes. For example, map
= mapMaze(___,Name,Value
)'MapSize',[50 30]
generates a random maze map with a width of 50 meters and height of 30 meters.
Examples
Input Arguments
Output Arguments
Tips
when the number of grid cells along map width could not accommodate given maze parameters,
ceil(MapWidth*MapResolution)
must be greater than or equal to(passageWidth+2*wallThickness)
.when the number of grid cells along map height could not accommodate given maze parameters,
ceil(MapHeight*MapResolution)
must be greater than or equal to(passageWidth+2*wallThickness)
.
Version History
Introduced in R2021a