MATLAB Function Reference
  Go to function:
    Search    Help Desk 
dlmread    See Also

Read an ASCII delimited file into a matrix

Syntax

Description

M = dlmread(filename,delimiter) reads data from the ASCII delimited format filename, using the delimiter delimiter. Use '\t' to specify a tab.

M = dlmread(filename,delimiter,r,c) reads data from the ASCII delimited format filename, using the delimiter delimiter, starting at file offset r and c. r and c are zero based so that r=0, c=0 specifies the first value in the file.

M = dlmread(filename,delimiter,r,c,range) imports an indexed or named range of ASCII-delimited data. To use the cell range, specify range by:

Arguments

delimiter
The character separating individual matrix elements in the ASCII- format spreadsheet file. A comma (,) is the default delimiter.
r, c
The spreadsheet cell from which the upper-left-most matrix element is taken.
range
A vector specifying a range of spreadsheet cells.

See Also

dlmwrite    Write a matrix to an ASCII delimited file

wk1read     Read a Lotus123 WK1 spreadsheet file into a matrix

wk1write    Write a matrix to a Lotus123 WK1 spreadsheet file




[ Previous | Help Desk | Next ]