HP 40gs hp 40gs_user's guide_English_E_HDPMSG40E07A.pdf - Page 372
Matrix commands
UPC - 882780045217
View all HP 40gs manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 372 highlights
hp40g+.book Page 24 Friday, December 9, 2005 1:03 AM Matrix commands The matrix commands take variables M0-M9 as arguments. ADDCOL Add Column. Inserts values into a column before column_number in the specified matrix. You enter the values as a vector. The values must be separated by commas and the number of values must be the same as the number of rows in the matrix name. ADDCOL name ;[value1,...,valuen];column_number : ADDROW Add Row. Inserts values into a row before row_number in the specified matrix. You enter the values as a vector. The values must be separated by commas and the number of values must be the same as the number of columns in the matrix name. ADDROW name;[value1,..., valuen];row_number: DELCOL Delete Column. Deletes the specified column from the specified matrix. DELCOL name;column_number: DELROW Delete Row. Deletes the specified row from the specified matrix. DELROW name;row_number: EDITMAT Starts the Matrix Editor and displays the specified matrix. If used in programming, returns to the program when user presses . EDITMAT name: RANDMAT Creates random matrix with a specified number of rows and columns and stores the result in name (name must be M0...M9). The entries will be integers ranging from -9 to 9. RANDMAT name;rows;columns: REDIM 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}. REDIM name;size: 21-24 Programming