Statistica Visual Basic Library of Matrix Functions - MatrixElemSubtract (Matrix, Scalar, MatrixResult)

Parameter

Description

Matrix

name of source data matrix (see Arrays in functions)

Scalar

value to be subtracted from each element of source matrix

MatrixResult

destination matrix (see Arrays in functions; may be the same as source Matrix, if desired)

The MatrixElemSubtract function will subtract the specified Scalar value from each element of the specified source Matrix (see Arrays in functions) and place the resulting values in the specified destination MatrixResult. Note that MatrixResult may be the same as the source Matrix if you wish to overwrite the original values of that array.

Related topics. MatrixElemAdd, MatrixElemDivide, MatrixElemMultiply. 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.