(Not recommended) Write comma-separated value file
csvwrite is not recommended. Use writematrix
instead. For more information, see Compatibility Considerations.
csvwrite writes a maximum of five significant digits. If you need
greater precision, use dlmwrite with a precision argument.
csvwrite does not accept cell arrays for the input matrix
M. To export a cell array that contains only numeric data, use
cell2mat to convert the cell array to a
numeric matrix before calling csvwrite.
csvwrite terminates each line with a line feed character
('\n' or char(10)) and no carriage return.