
[j:k]
. You get the values from j
, j+1
,
k1
. Note that it stops just before k
. A colon
:
by itself specifies all values. Of course, this is not
needed for a vector. You can skip values in the range. If you do
j:k:m}
, then you get j
, j+m
,
j+2m
, etc. up to the last value before k
.
A twodimensional matrix takes two subscripts. So in the example
above, we the subscript :,0
selects the whole 0th column
of the matrix.