; Points 5 to 10 of VEC, a 6-element vector.
VEC(5 : 10)
; 3-point neighborhood around I: [VEC(I – 1), VEC(I), VEC(I + 1)].
VEC(I - 1 : I + 1)
; Points in VEC from VEC(4) to the end, a 50 – 4 = 46-element
; vector.
VEC(4 : *)
; A 1-by-12 array: [A(3, 0), A(3, 1), ..., A(3, 11)].
A(3, *)
; A 10-element vector.
A(*, 0)
; The 9-point neighborhood surrounding A(X,Y), a 3-by-3 array.
A(X - 1 : X + 1, Y - 1 : Y + 1)
; A 3-by-12 subarray.
A(3 : 5, *)
a = FLTARR( 5, 5 ) & a(*) = 1 & a(0:3,1:*) = 2 & PM, a
1.00000 | 2.00000 | 2.00000 | 2.00000 | 2.00000 |
1.00000 | 2.00000 | 2.00000 | 2.00000 | 2.00000 |
1.00000 | 2.00000 | 2.00000 | 2.00000 | 2.00000 |
1.00000 | 2.00000 | 2.00000 | 2.00000 | 2.00000 |
1.00000 | 1.00000 | 1.00000 | 1.00000 | 1.00000 |
a = FLTARR( 2, 4 ) & a(*) = INDGEN( 8 ) & PM, a
0.00000 | 2.00000 | 4.00000 | 6.00000 |
1.00000 | 3.00000 | 5.00000 | 7.00000 |
a = DBLARR( 3, 3, 3 ) & a(*,1:*,0) = INDGEN( 6 ) & PM, a
0.0000000 0.0000000 0.0000000 | 0.0000000 1.0000000 2.0000000 | 3.0000000 4.0000000 5.0000000 |
0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 |
0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 |
a(*,*,2) = REPLICATE( 1, 3, 3 ) & PM, a
0.0000000 0.0000000 0.0000000 | 0.0000000 1.0000000 2.0000000 | 3.0000000 4.0000000 5.0000000 |
0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 |
1.0000000 1.0000000 1.0000000 | 1.0000000 1.0000000 1.0000000 | 1.0000000 1.0000000 1.0000000 |
a(0:0,2:2,2:*) = 2 & PM, a
0.0000000 0.0000000 0.0000000 | 0.0000000 1.0000000 2.0000000 | 3.0000000 4.0000000 5.0000000 |
0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 | 0.0000000 0.0000000 0.0000000 |
1.0000000 1.0000000 1.0000000 | 1.0000000 1.0000000 1.0000000 | 2.0000000 1.0000000 1.0000000 |