Matrix – HP Prime Graphing Wireless Calculator User Manual
Page 293
Programming in HP PPL
289
Matrix
Some matrix commands take as their argument the matrix
variable name on which the command is applied. Valid
names are the global variables M0–M9 or a local
variable that contains a matrix.
ADDCOL
Syntax: ADDCOL(matrix, vector,
column_number)
Inserts the values in vector into a new column inserted
before column_number in the specified matrix. The
number of values in the vector must be the same as the
number of rows in the matrix.
ADDROW
Syntax: ADDROW(matrix, vector, row_number)
Inserts the values in vector into a new row inserted
before row_number in the specified matrix. The number
of values in the vector must be the same as the number of
columns in the matrix.
DELCOL
Syntax: DELCOL(matrix,column_number)
Deletes column column_number from the matrix.
DELROW
Syntax: DELROW(matrix,row_number)
Deletes row row_number from the matrix.
EDITMAT
Syntax: EDITMAT(matrix)
Starts the Matrix Editor and displays the specified matrix.
If used in programming, returns to the program when user
presses
. Even though this command returns the
matrix that was edited, EDITMAT cannot be used as an
argument in other matrix commands.
REDIM
Syntax: REDIM(matrix, size)
Redimensions the specified matrix or vector to size. For a
matrix, size is a list of two integers (n1,n2). For a vector,
size is a list containing one integer (n). Existing values in
the matrix are preserved. Fill values will be 0.
REPLACE
Syntax: REPLACE(matrix, start, object)
Replaces portion of a matrix or vector stored in matrix with
an object starting at position start. Start for a matrix is a
list containing two numbers; for a vector, it is a single