Syntax of Matrix Language (MATRIX-END MATRIX command)

A matrix program consists of statements. Matrix statements must appear in a matrix program, between the MATRIX and END MATRIX commands. They are analogous to IBM® SPSS® Statistics commands and follow the rules of the command language regarding the abbreviation of keywords; the equivalence of upper and lower case; the use of spaces, commas, and equals signs; and the splitting of statements across multiple lines. However, commas are required to separate arguments to matrix functions and procedures and to separate variable names on the RELEASE statement.

Matrix statements are composed of the following elements:

  • Keywords, such as the names of matrix statements
  • Variable names
  • Explicitly written matrices, which are enclosed within braces ({})
  • Arithmetic and logical operators
  • Matrix functions
  • The command terminator, which serves as a statement terminator within a matrix program