diff doc/interpreter/expr.txi @ 14038:b0cdd60db5e5 stable

doc: Grammarcheck documentation ahead of 3.6.0 release. * basics.txi, container.txi, contrib.txi, debug.txi, expr.txi, func.txi, install.txi, io.txi, package.txi, polyarea.m, ezcontour.m, ezcontourf.m, ezmesh.m, ezmeshc.m, ezplot.m, ezplot3.m, ezpolar.m, ezsurf.m, ezsurfc.m, assert.m, amd.cc, chol.cc, colamd.cc, rand.cc: Grammarcheck documentation.
author Rik <octave@nomad.inbox5.com>
date Mon, 12 Dec 2011 21:01:27 -0800
parents dfbf6a49847c
children 951eacaf9381
line wrap: on
line diff
--- a/doc/interpreter/expr.txi
+++ b/doc/interpreter/expr.txi
@@ -62,7 +62,7 @@
 elements of the array are taken in column-first order (like Fortran).
 
 The output from indexing assumes the dimensions of the index
-expression.  For example,
+expression.  For example:
 
 @example
 @group
@@ -77,8 +77,10 @@
 matrix.  For example:
 
 @example
+@group
 a(:)       # result is a column vector
 a(:)'      # result is a row vector
+@end group
 @end example
 
 The above two code idioms are often used in place of @code{reshape}
@@ -149,7 +151,6 @@
 with an example.
 
 @example
-@group
 a = reshape (1:8, 2, 2, 2)  # Create 3-D array
 a =
 
@@ -169,7 +170,6 @@
 a(2,4);     # Case (m < n), idx outside array:
             # Dimension 2 & 3 folded into new dimension of size 2x2 = 4
             # Select 2nd row, 4th element of [2, 4, 6, 8], ans = 8
-@end group
 @end example
 
 One advanced use of indexing is to create arrays filled with a single