![]() |
MATRIX TRUNCATIONName:
where <M> is a matrix; <VALUE> is a parameter or a number that specifies the truncation value; and <Z> is the matrix that is returned after the truncation is applied. This syntax is used to perform lower truncation (that is, any values less than <VALUE> are set equal to <VALUE>. The <Z> matrix can be the same as the <M> matrix.
where <M> is a matrix; <VALUE> is a parameter or a number that specifies the truncation value; and <Z> is the matrix that is returned after the truncation is applied. This syntax is used to perform upper truncation (that is, any values greater than <VALUE> are set equal to <VALUE>. The <Z> matrix can be the same as the <M> matrix.
LET M = MATRIX TRUNCATION M VALUE
READ MATRIX M 1 2 3 4 5 6 7 8 9 10 11 12 END OF DATA . LET ZERO = 0 LET AVAL = 4 LET M = MATRIX SUBTRACTION M AVAL LET M = MATRIX TRUNCATION M ZERO . SET WRITE DECIMALS 0 PRINT MThe resulting M matrix is: MATRIX M -- 4 ROWS -- 3 COLUMNS VARIABLES--M1 M2 M3 0 0 0 0 1 2 3 4 5 6 7 8
Date created: 4/14/2006 |