Code covered by the BSD License  

Highlights from
cell2str

4.75

4.8 | 4 ratings Rate this file 72 Downloads (last 30 days) File Size: 1.53 KB File ID: #13999

cell2str

by

 

19 Feb 2007 (Updated )

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

| Watch this File

File Information
Description

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'';}'.

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
25 Feb 2014 Valentina

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

06 Jan 2009 Craig Derian

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

22 May 2008 Virginia Woods

Works great. Thanks

06 May 2008 Alfredo IƱigo

aa

Contact us