spcread - Read columns of data from ASCII text file

Syntax

mat = spcread
mat = spcread(filename)
mat = spcread(cols)

Description

mat = spcread reads an ASCII file of space-delimited data in two columns and returns the data in a matrix, mat. The file is selected by dialog box.

mat = spcread(filename) specifies the file from which to read by its name, given as the string filename.

mat = spcread(cols) specifies the number of columns of space-delimited data in the file with the integer cols. The default value of cols is 2.

Remarks

The spcread function is similar to the standard MATLAB function dlmread. spcread, however, is much faster at reading large data sets of the type common for geographic purposes.

See Also

nanclip

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS