PLS_Toolbox Documentation: areadr | < anova2w | auto > |
areadr
Purpose
Reads ASCII text file into workspace and strips off header.
Synopsis
out = areadr1(file,nline,nvar,flag)
Description
Inputs are (file) an ASCII string containing the file name to be read, (nline) the number of rows to skip before reading, (nvar) the number of rows or columns in the matrix to be read, and (flag) which indicates whether (nvar) is the number of rows (flag=1) or the number of columns (flag=2) in the matrix.
AREADR can be incorporated into other routines to read data directly from groups of files. For example, to read the file mydata.txt with a 5 line header and 8 columns in the data into the matrix mymatrix:
mymatrix = areadr('mydata.txt',5,8,2)
See Also
dlmread, import, spcreadr, xclgetdata, xclputdata, xclreadr, xlsreadr
< anova2w | auto > |