MATLAB: Problem with converting data

convert datastr2num

Dear all, I have a problem error when I converted data in a cell '17 Mar 2010 10:00,02.510' I got this error First input must be of type double or string
how can I convert it to numbers?
thank you in advance.

Best Answer

str = someCellArray{1};
will extract that out of a cell array (if it is at index 1 in the cell array, change the index accordingly if not) into a string. For converting date strings to numeric functions like
doc datevec
doc datenum
tend to be used. str2num will not achieve this. But your string appears to be in an unsupported format when I did a quick test of those just now.