Skip to content

dlmread

builtin · libnexusinterp/corefcn/dlmread-proprietary.cc

: data = dlmread (file)
: data = dlmread (file, sep)
: data = dlmread (file, sep, r0, c0)
: data = dlmread (file, sep, range)
: data = dlmread (…, "emptyvalue", EMPTYVAL)

Read numeric data from a delimited text file or an open file id.

sep is the field separator; when omitted it is detected from the file. r0 and c0 are zero based row and column offsets of the first value, and range is either [r0 c0 r1 c1] or a spreadsheet style range such as "B1:C4". Blank lines are skipped, short rows are padded with EMPTYVAL (default 0), and fields written as a+bi produce a complex result.