Subrange + matrix

Zolis
Posts: 1
Joined: 2010-03-01
Location: France

i've a big matrix that i want to plot and play with.
Is it possible to subrange easily such a matrix?
thanks


harneit
Posts: 93
Joined: 2008-01-21
Location: Germany

Have you already tried to plot the whole matrix and to use just the usual graphical tools to zoom in on it? Or is your matrix too big for that? Igor can handle quite big data objects easily.

Subranging 2D waves ("matrices") in Igor follows the pattern matrix[p-range][q-range] or matrix(x-range)(y-range). (NOT matrix[p-range, q-range]). It can be used in wave assignments or directly for graphing. This is explained in the documentation.

You can learn more by executing from the command line
DisplayHelpTopic "Multidimensional Wave Indexing"
or
DisplayHelpTopic "Subrange Display"

Wolfgang


Posts: 593
Joined: 2007-06-21
Location: United States

You can use the Duplicate operation to extract a submatrix:

Make/N=(100,100) mat1
mat1 = sin((p-50)/25)^2 * cos((q-50)/25)^2
NewImage mat1
Duplicate/O/R=[0,49][0,49] mat1, mat2  // Subset
NewImage mat2
Duplicate/O/R=[50,99][0,49] mat1, mat2  // Different subset


Back to top