Array subscripts can be triplets:
- X(1:10:3) stands for the subarray:
(X(1), X(4), X(7), X(10))
Special cases of triplets:
- X(1:4), stride defaults to 1:
(X(1), X(2), X(3), X(4))
- X(:) selects whole of array dimension, as originally declared. Most useful for multi-dimensional arrays—here X(:) just equivalent to X.