Variable Specification (MATRIX-END MATRIX command)

The variable reference on the GET statement is a matrix variable name with or without indexes.

For a name without indexes:

  • GET creates the specified matrix variable.
  • The size of the matrix is determined by the amount of data read from the IBM® SPSS® Statistics data file or the active dataset.
  • If the matrix already exists, it is replaced by the matrix read from the file.

For an indexed name:

  • GET creates a submatrix from an existing matrix.
  • The matrix variable named must already exist.
  • You can define any submatrix with indexes; for example, M(:,I). To define an entire existing matrix, specify M(:,:).
  • The indexes, along with the size of the existing matrix, specify completely the size of the submatrix, which must agree with the dimensions of the data read from the IBM SPSS Statistics data file.
  • The specified submatrix is replaced by the matrix elements read from the IBM SPSS Statistics data file.