Gettind the indexes of table array with time and data according to datetime vector with time. Or how to syncronize datetime vector with table array
Afficher commentaires plus anciens
Hi
I am very confused by datetime vector in Matlab and can not understand completely how I can solve my problem:
I have datetime vector with time:
and I have a table array with time and corresponding data: 

I need to get a vector of indixes of the table array which correspond to time from datetime vector. For example to get smth like this (If you do manually):

I tried to transform datetime array to a timetable and the use syncronize function but I didnot manage to do it. Tried to use find function but stil does not work.
Thank you!
These two arrays are attached
2 commentaires
dpb
le 18 Juil 2019
I don't follow how the second vector is supposed to be related to the first???
What, specifically, are you trying to do?
Yurii Iotov
le 18 Juil 2019
Réponse acceptée
Plus de réponses (1)
Yurii Iotov
le 18 Juil 2019
Modifié(e) : Yurii Iotov
le 18 Juil 2019
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!