So, I have been trying to convert date to a number and add it to the first column of a numeric matrix.
Unfortnatelly, I use the code below to create the matrix for a specific range of dates but the dates were imported as strings not numbers (see picture). i have no dea why this doesn't work. Any idea?
t1=datetime([2001 01 01 00 00 00]);
t2=datetime([2017 12 31 23 00 00]);
time = datetime(t);
Firstly, I set the starting and finishing point and then, I choose to insert data by the hour.
After that I try but fail to do the numeric conversion.
Any help is appreciated!