<< dlmread | Spreadsheet | readcell >> |
dlmwrite(filename, M) |
dlmwrite(filename, M, delimiter) |
dlmwrite(filename, M, '-append') |
dlmwrite(filename, M, '-append', delimiter) |
dlmwrite(filename, M, delimiter, r, c) |
dlmwrite(filename, M, '-append', delimiter, r, c) |
dlmwrite(filename, M, delimiter, r, c, eol) |
dlmwrite(filename, M, '-append', delimiter, r, c, eol) |
dlmwrite(filename, M, delimiter, r, c, eol, precision) |
dlmwrite(filename, M, '-append', delimiter, r, c, eol, precision) |
a string: filename destination.
an numeric or logical matrix.
a string: ',' , '\t', ';' delimiter. default ','
integer: offset. default : 0, 0
a string: 'pc' or 'unix'.
a integer or C format string. (default: 5)
dlmwrite writes an numeric matrix to an ASCII format file.
A = [Inf, -Inf, NaN, 3];
filename = [tempdir(), 'dlmwrite_example.csv'];
dlmwrite(filename, A);
R = dlmread(filename)
A = eye(3, 2);
dlmwrite(filename, A, ';', 4, 5);
R = fileread(filename)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET