comparison doc/interpreter/container.txi @ 14119:94e2a76f1e5a stable

doc: Final grammarcheck and spellcheck before 3.6.0 release. * container.txi, aspell-octave.en.pws, expr.txi, vectorize.txi, accumarray.m, accumdim.m, interpft.m, strread.m, parseparams.m, warning_ids.m, cellfun.cc, help.cc: grammarcheck and spellcheck docstrings.
author Rik <octave@nomad.inbox5.com>
date Thu, 29 Dec 2011 06:05:00 -0800
parents 951eacaf9381
children 72c96de7a403
comparison
equal deleted inserted replaced
14118:ebe2e6b2ba52 14119:94e2a76f1e5a
505 @subsection Processing Data in Structures 505 @subsection Processing Data in Structures
506 506
507 The simplest way to process data in a structure is within a @code{for} 507 The simplest way to process data in a structure is within a @code{for}
508 loop (@pxref{Looping Over Structure Elements}). A similar effect can be 508 loop (@pxref{Looping Over Structure Elements}). A similar effect can be
509 achieved with the @code{structfun} function, where a user defined 509 achieved with the @code{structfun} function, where a user defined
510 function is applied to each field of the structure. @xref{doc-structfun}. 510 function is applied to each field of the structure. @xref{doc-structfun}.
511 511
512 Alternatively, to process the data in a structure, the structure might 512 Alternatively, to process the data in a structure, the structure might
513 be converted to another type of container before being treated. 513 be converted to another type of container before being treated.
514 514
515 @DOCSTRING(struct2cell) 515 @DOCSTRING(struct2cell)
883 Data that is stored in a cell array can be processed in several ways 883 Data that is stored in a cell array can be processed in several ways
884 depending on the actual data. The simplest way to process that data 884 depending on the actual data. The simplest way to process that data
885 is to iterate through it using one or more @code{for} loops. The same 885 is to iterate through it using one or more @code{for} loops. The same
886 idea can be implemented more easily through the use of the @code{cellfun} 886 idea can be implemented more easily through the use of the @code{cellfun}
887 function that calls a user-specified function on all elements of a cell 887 function that calls a user-specified function on all elements of a cell
888 array. @xref{doc-cellfun}. 888 array. @xref{doc-cellfun}.
889 889
890 An alternative is to convert the data to a different container, such as 890 An alternative is to convert the data to a different container, such as
891 a matrix or a data structure. Depending on the data this is possible 891 a matrix or a data structure. Depending on the data this is possible
892 using the @code{cell2mat} and @code{cell2struct} functions. 892 using the @code{cell2mat} and @code{cell2struct} functions.
893 893