MATLAB: Date time to datenum

datenum

I have an array of time series in the format dd-mm-yyyy hh:mm:ss, I want to convert it to datenum:
'29-May-1930 00:00:00'
'29-May-1930 01:00:00'
'29-May-1930 02:00:00'
'29-May-1930 03:00:00'
'29-May-1930 04:00:00'
'29-May-1930 05:00:00'
'29-May-1930 06:00:00'
'29-May-1930 07:00:00'
'29-May-1930 08:00:00'
'29-May-1930 09:00:00'
'29-May-1930 10:00:00'
How to do so?

Best Answer

What is wrong with the obvious
res = datenum( yourData );
?