Debugging a Program With dbx

Slices

Here is an example of a two-dimensional, rectangular slice, with the default stride of 1 omitted:


print arr(201:203, 101:105)

Graphic

The first two expressions (201:203) specify a slice in the first dimension of this two-dimensional array (the three-row column). The slice starts at the row 201 and ends with 203. The second set of expressions, separated by a comma from the first, defines the slice for the 2nd dimension. The slice begins at column 101 and ends after column 105.