Next:
Index bound
Up:
Matrix Indexing
Previous:
$ stands for the
Contents
:
is equivalent to
1 : $
If an index consists of a single colon, then it is equivalent to
1 : $
. For example,
A[1, :]
returns the first row;
A[:, 3]
returns the third column, and
A[:]
returns the column vector obtained by joining all rows of
A
.
oz 2009-12-22