Mercurial > octave-nkf
diff doc/interpreter/stmt.txi @ 10828:322f43e0e170
Grammarcheck .txi documentation files.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Wed, 28 Jul 2010 12:45:04 -0700 |
parents | 923c7cb7f13f |
children | d682cd6669ac |
line wrap: on
line diff
--- a/doc/interpreter/stmt.txi Wed Jul 28 11:57:39 2010 -0700 +++ b/doc/interpreter/stmt.txi Wed Jul 28 12:45:04 2010 -0700 @@ -383,6 +383,7 @@ @dots{} @end group @end example + @end itemize @node The @code{while} Statement @@ -576,7 +577,7 @@ the matrix or cell matrix. So the first loop iterates twice, producing two column vectors @code{[1;2]}, followed by @code{[3;4]}, and likewise for the loop over the cell array. This can be extended to loops over -multidimensional arrays. For example +multi-dimensional arrays. For example: @example @group @@ -588,7 +589,7 @@ @end example @noindent -In the above case, the multidimensional matrix @var{c} is reshaped to a +In the above case, the multi-dimensional matrix @var{c} is reshaped to a two-dimensional matrix as @code{reshape (c, rows(c), prod(size(c)(2:end)))} and then the same behavior as a loop over a two dimensional matrix is produced. @@ -624,7 +625,7 @@ In this form of the @code{for} statement, the value of @var{expression} must be a structure. If it is, @var{key} and @var{val} are set to the name of the element and the corresponding value in turn, until there are -no more elements. For example, +no more elements. For example: @example @group