Mapping Toolbox | ![]() ![]() |
Use workspace variables to construct a cell array for input to the mlayers
tool
Syntax
Description
rootlayr allows the mlayers
tool to be used with workspace variables. It constructs a cell array that contains all the structure variables in the current workspace. This cell array is returned in the variable ans
, which can then be an input to mlayers
. If there is an existing variable named ans
, it is overwritten.
The recommended calling procedure is rootlayr;mlayers(ans);
Examples
rootlayr
will create a cell array named ans
, consisting of the three structure variables in the following workspace.
whos Name Size Bytes Class borders 1x1 38390 struct array lats 2345x1 18760 double array lons 2345x1 18760 double array nation 1x1 70224 struct array states 1x51 254970 struct array rootlayr ans ans = [1x1 struct] 'borders' [1x1 struct] 'nation' [1x51 struct] 'states'
The command mlayers(ans)
can now be used to activate the mlayers
tool for the structures contained in ans
.
See Also
geographic data structure |
Specially formatted structure for map data |
mlayers |
Interactive geographic data structure manipulation (see GUI Reference) |
![]() | rhxrh | rotatem | ![]() |