Cell Array to CSV-file [cell2csv.m]
Version 1.1.0.0 (1.89 KB) by
Sylvain Fiedler
Writes a cell array into a comma separated values text file (*.csv)
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://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 LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Text Files >
- MATLAB > External Language Interfaces > COM with MATLAB > Use COM Objects in MATLAB >
Find more on Text Files in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: BiofilmQ, finnal, High-Throughput, Algorithmic Determination of Nanoparticle Structure from Electron Microscopy Images
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
