diff doc/interpreter/container.txi @ 6863:3c64128e621c

[project @ 2007-09-05 07:52:48 by dbateman]
author dbateman
date Wed, 05 Sep 2007 07:53:45 +0000
parents 40ad39648884
children 975fcdfb0d2d
line wrap: on
line diff
--- a/doc/interpreter/container.txi	Wed Sep 05 06:49:29 2007 +0000
+++ b/doc/interpreter/container.txi	Wed Sep 05 07:53:45 2007 +0000
@@ -200,6 +200,7 @@
 * Structure Arrays::
 * Creating Structures::
 * Manipulating Structures::
+* Processing Data in Structures::
 @end menu
 
 @node Structure Arrays
@@ -395,9 +396,22 @@
 
 @DOCSTRING(getfield)
 
-@DOCSTRING(struct2cell)
+@DOCSTRING(substruct)
+
+@node Processing Data in Structures
+@subsection Processing Data in Structures
 
-@DOCSTRING(substruct)
+The simpliest way to process data in a structure is within a @code{for}
+loop or othe means of iterating over the fields. A similar effect can be
+achieved with the @code{structfun} function, where a user defined
+function is applied to eacg field of the structure.
+
+@DOCSTRING(structfun)
+
+Alternatively, to process the data in a strcuture, the structure might
+be converted to another type of container before being treated.
+
+@DOCSTRING(struct2cell)
 
 @node Cell Arrays
 @section Cell Arrays