Main Content

rootlayr

(Removed) Construct cell array of workspace variables for mlayers tool

The rootlayr function has been removed.

Syntax

rootlayr

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 creates 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 function mlayers(ans) can now be used to activate the mlayers tool for the structures contained in ans.

Version History

Introduced before R2006a