Hi- I'm new to matlab world and I do have some issue dealing with the timeseries
I have two arrays
- One time array(name time) which is a string cell array like this "dd-MM-yyy HH:mm:SS"
- One array which represents my value for each time
I found a solution but it’s quite slow
% transformed my time array in datetime
Time2 = datetime(time,'InputFormat','dd-MM-yyyy HH:mm:SS')%transforme my datetime array in date string
Time3= datestr(Time2)%Create the timeseries
Ts = timeseries ( data,Time3)
This code is working but it's very slow is that possible to improve this?
Thanks in advance
Regards,
Best Answer