Hi, depending on the contents in the cell array, here are two examples. Mind the indexing into cell, you should use curly brackets to get the "contents" of the cell.
a = '3.4';
str2num(a)
ans =
3.4000
str2double(a)
ans =
3.4000
a ='3.4, 5.2';
str2double(a)
ans =
NaN
str2num(a)
ans =
3.4000 5.2000
Best Answer