FUNCTION REFERENCE

csvwrite

Write a matrix to a comma-separated file.

Write a matrix to a comma-separated file.

Syntax

csvwrite(filename, M)

Syntax

csvwrite(filename, M, r, c)

Same as dlmwrite with a comma delimiter. r and c add empty rows and columns in front.

Example

csvwrite('c.csv', [1 2; 3 4])

Differences from MATLAB: output over 8 MiB is refused.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.