extract data in specific interval
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rachele Franceschini
le 21 Sep 2021
Réponse apportée : KSSV
le 21 Sep 2021
I have one table with two columns: date (01-01-2010 to 31-08-2021), value
I would like to get only data during 2020. There is a function or similar to get some only data in specific period?
0 commentaires
Réponse acceptée
KSSV
le 21 Sep 2021
Let thedates be your datetime array.
[y,m,d,h,m,s] = datevec(thedates) ;
iwant = thedates(y==2020)
You can also use inequalities like ==, >, <, >=, <= on these dates.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!