Main Content
csvwrite
(Not recommended) Write comma-separated value file
csvwrite
is not recommended. Use writematrix
instead. For more information, see Compatibility Considerations.
Description
Examples
Input Arguments
Limitations
csvwrite
writes a maximum of five significant digits. If you need greater precision, usedlmwrite
with a precision argument.
csvwrite
does not accept cell arrays for the input matrixM
. To export a cell array that contains only numeric data, usecell2mat
to convert the cell array to a numeric matrix before callingcsvwrite
.
Algorithms
csvwrite
terminates each line with a line feed character ('\n'
orchar(10)
) and no carriage return.