Statistica Visual Basic Library of Matrix Functions - MatrixSubtract (Matrix1, Matrix2, MatrixResult)

Parameter Description
Matrix1 name of first data array (see Arrays in functions)
Matrix2 name of second data array (see Arrays in functions)
MatrixResult destination matrix (see Arrays in functions) may be the same as Matrix1 or Matrix2, if desired

The MatrixSubtract function will subtract each element of Matrix2 from the corresponding element of Matrix1 (see Arrays in functions) and place the resulting values in the matrix specified as MatrixResult (the result matrix may be the same as either Matrix1 or Matrix2 if you wish to overwrite the original values of that array).

Related topics
MatrixAdd, MatrixMultiply, MatrixElemSubtract. For more information on using arrays, see Arrays in functions. For a complete list of matrix functions, see Statistica Visual Basic library of matrix functions.