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




name of first data array (see Arrays in functions)


name of second data array (see Arrays in functions)


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.