MATLAB Function Reference Previous page   Next Page
csvwrite

Write comma-separated value file

Syntax

Description

csvwrite('filename',M) writes matrix M into filename as comma-separated values.

csvwrite('filename',M,row,col) writes matrix M into filename starting at the specified row and column offset. The row and column arguments are zero based, so that row=0 and C=0 specify the first value in the file.

Remarks

csvwrite terminates each line with a line feed character and no carriage return.

Examples

The following example creates a comma-separated value file from the matrix m.

The next example writes the matrix to the file, starting at a column offset of 2.

See Also

csvread, dlmwrite, wk1write, file formats, importdata, uiimport


Previous page  csvread cumprod Next page

© 1994-2005 The MathWorks, Inc.