Subscript a Crystal Matrix

DESCRIPTION:
Allows the user to extract or replace parts of a crystal.matrix object by using crystal names or subscripts.

USAGE:
x[i]
x[i] <- value
x[[i]]
x[[i]] <- value
x$i
x$i <- value

REQUIRED ARGUMENTS:
x:
an object inheriting from class "crystal.matrix".
i:
a vector of crystal names, positive integers or logical vector. For [[, i must be an integer or a crystal name.

OPTIONAL ARGUMENTS:
value:
replacement value for the relevant piece of the crystal.matrix.

DETAILS:
See the chapter "More on Wavelet Analysis" of the S+WAVELETS User's Manual for details and examples of subscripting and assignment.

VALUE:
x[i] returns a matrix of the same class and dimension as x, with all values zero except those corresponding to i-th crystal(s); x[[i]] and x$i return an object of class wp.crystal.2d or cp.crystal.2d.

SEE ALSO:
wp.crystal.2d , cp.crystal.2d , crystal.matrix.object .