Cell Array to CSV-file [cell2csv.m]

Writes a cell array into a comma separated values text file (*.csv)
30.2K Downloads
Updated 3 Nov 2010

View License

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 (2024). Cell Array to CSV-file [cell2csv.m] (https://www.mathworks.com/matlabcentral/fileexchange/4400-cell-array-to-csv-file-cell2csv-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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