version (1.53 KB) by Per-Anders Ekstrom
Convert a 2-D cell array of strings to a string in MATLAB syntax.


Updated Tue, 20 Feb 2007 17:41:57 +0000

View License

STR = CELL2STR(CELLSTR) converts the 2-D cell-string CELLSTR to a MATLAB string so that EVAL(STR) produces the original cell-string.
Works as corresponding MAT2STR but for cell array of strings instead of scalar matrices.

cellstr = {'U-234','Th-230'};
cell2str(cellstr) produces the string '{''U-234'',''Th-230'';}'.

Cite As

Per-Anders Ekstrom (2022). cell2str (https://www.mathworks.com/matlabcentral/fileexchange/13999-cell2str), MATLAB Central File Exchange. Retrieved .

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