Use str2double():
a = {'xxx' , 'xxx' , '24' , '63' , 'ggg' , 'ggg'}
out = str2double([a])
whos out
In the command window:
a =
'xxx' 'xxx' '24' '63' 'ggg' 'ggg'
out =
NaN NaN 24 63 NaN NaN
Name Size Bytes Class Attributes
out 1x6 48 double
