Cell Array to CSV-file [cell2csv.m]

Writes a cell array into a comma separated values text file (*.csv)

You are now following this Submission

This function writes a cell array into a CSV-file.
It works with empty cells, numeric, char, string and logical cells. One array can contain all of them, but only one value per cell.

CSV-files can then be read by Excel, so you don't need DDE or ActiveX.

Cite As

Sylvain Fiedler (2026). Cell Array to CSV-file [cell2csv.m] (https://nl.mathworks.com/matlabcentral/fileexchange/4400-cell-array-to-csv-file-cell2csv-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Added the choice of the decimal separator

1.0.0.0

Fixed the bug when cell array contained a logical variable