(octave.info)Comma Separated Lists Generated from Structure Arrays


Prev: Comma Separated Lists Generated from Cell Arrays Up: Comma Separated Lists
Enter node , (file) or (file)node

6.4.2 Comma Separated Lists Generated from Structure Arrays
-----------------------------------------------------------

Structure arrays can equally be used to create comma separated lists.
This is done by addressing one of the fields of a structure array.  For
example:

     x = ceil (randn (10, 1));
     in = struct ("call1", {x, 3, "last"},
                  "call2", {x, inf, "first"});
     out = struct ("call1", cell (2, 1), "call2", cell (2, 1));
     [out.call1] = find (in.call1);
     [out.call2] = find (in.call2);


automatically generated by info2www version 1.2.2.9