File Exchange

image thumbnail

File I/O for Cell Arrays

version (2.33 KB) by Kamil Wojcicki
Wrappers for reading and writing text between files and cell arrays.


Updated 14 Jun 2011

View License

Provides simple I/O routines, file2cell and cell2file, for reading an ASCII text file to a cell array of strings (one line per cell element) and writing a cell array of strings (columnwise) to an ASCII file, respectively. The routines can be easily extended with regular expressions to add extra functionality, f.e., to remove empty lines, etc.

Cite As

Kamil Wojcicki (2021). File I/O for Cell Arrays (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
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!