Statistica Visual Basic Library of Matrix Functions - MatrixAdd (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 MatrixAdd function will add each element of the two specified matrices (see Arrays in functions) and place the resulting values in the specified matrix (see the parameter MatrixResult; the result matrix may be the same as either Matrix1 or Matrix2 if you wish to overwrite the original values of that array). All matrices must be of the same size (rows x columns).

Related topics. MatrixRead, MatrixSubtract, MatrixMultiply. 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.