MATLAB Function Reference | ![]() ![]() |
Write a matrix to an ASCII delimited file
Syntax
Description
dlmwrite(filename,M,delimiter)
writes matrix M
into an ASCII-format file, using delimiter
to separate matrix elements. The data is written to the upper left-most cell of the spreadsheet filename
. A comma (,) is the default delimiter. Use '\t'
to produce tab-delimited files.
dlmwrite(filename,M,delimiter,R,C)
writes matrix A into an ASCII-format file, using delimiter
to separate matrix elements. The data is written to the spreadsheet filename
, starting at spreadsheet cell R
and C
, where R
is the row offset and C
is the column offset. R
and C
are zero based so that R=0
, C=0
specifies the first value in the file, which is the upper left corner.
Remarks
The resulting file is readable by spreadsheet programs.
See Also
dlmread
, csvwrite
, csvread
, wk1write
, wk1read
![]() | dlmread | dmperm | ![]() |