Statistica Visual Basic Library of Matrix Functions - MatrixCopy (SrcMatrix, SrcRow, SrcCol, ?NoOfRows, ?NoOfCols, DestMatrix, DestRow, DestCol)

Parameter

Description

ScrMatrix

name of source data matrix (see Arrays in functions)

ScrRow

number of first row from which to begin the copy

ScrCol

number of first column from which to begin the copy

?NoOfRows

number of rows to be copied (0 = all remaining rows in source or destination matrix, whichever is smaller)

?NoOfCols

number of columns to be copied (0 = all remaining columns in source or destination matrix, whichever is smaller)

DestMatrix

name of destination data matrix (see Arrays in functions); may be same as source matrix

DestRow

number of first row into which values will be copied

DestCol

number of first column into which values will be copied

The MatrixCopy function will copy the specified number of rows and columns beginning at the specified location (see parameters ScrRow and ScrCol) from the source matrix (see parameter ScrMatrix) and place the resulting values in the specified location (see parameters DestRow and DestCol) of the destination matrix (see parameter DestMatrix). Note that the destination matrix may be the same as the source matrix if you wish to overwrite the original values of the source matrix.

Related topics. MatrixDuplicate, MatrixRead, MatrixDisplay, MatrixExtract, MatrixGetColumn, MatrixGetRow. 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.