File Exchange

image thumbnail

cell2str

version 1.0 (1.53 KB) by

Convert a 2-D cell array of strings to a string in MATLAB syntax.

88 Downloads

Updated

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.

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

Comments and Ratings (5)

Add

Add (view profile)

works good to convert cells to a string.

Valentina

Great job! it speeded up my work. Thanks!!

Craig Derian

took some small mods to work for structure dynamic field name creation, but very nice

Virginia Woods

Works great. Thanks

Alfredo Iñigo

aa

MATLAB Release
MATLAB 7.2 (R2006a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video