Similarly, if size(mycell)
is 400x1. ,,
str2num(cell2mat(mycell))
... or like that, if the size is 1x400
str2num(cell2mat(mycell'))
However, this will cause problems if any of your lines contains a different number of characters, i.e.
mycell{1} = '2' mycell{2} = '33'
If you have such a case,
str2double(mycell)
... this seems to be ok as indicated in another answer!
source share