STATISTICA Visual Basic Library of Matrix Functions - MatrixRead (FileName$, Matrix)




name of source text file


name of data matrix (see Arrays in functions)

The MatrixRead function will read the specified text file into the array Matrix (see Arrays in functions). In the text file, columns should be delimited by non-numeric characters (e.g., tabs, blanks, and commas are all valid separators). Rows should be delimited by carriage returns. If the defined matrix is larger than the contents of the text file, the unused cells are set to 0. If the defined matrix is smaller than the contents of the text file, the extra rows and/or columns are ignored.

Related topics. MatrixReadFromDataFile, MatrixCopy, MatrixWrite, MatrixSetColumn, MatrixSetDiagonal, MatrixSetRow, MatrixFill, MatrixExtract. 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.