Hi, I have a 11619×6 matrix of the form [No.Data, YY, mm, dd, hour, sec]
1 1968 1 1 7 50 50.762 1968 1 4 11 37 8.1903 1968 1 11 23 17 0.14004 1968 1 14 21 21 59.065 1968 1 17 19 34 55.706 1968 1 18 21 22 32.22
etc…
and I want to calculate the elapsed time between the 1st row and the 2nd, and then between the 1st row and the 3rd, then between the 1st row and the 4th and so on…
My thought was to do something simple without using a for loop
T= x(1:end-1,2:7);Tn= x(2:end,2:7);dt=etime(Tn,T);
but it didn't work. Can anyone give me an idea how to solve this?
Thanks!
Best Answer