Is there a function similar to "where"?
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For example i am going through a table of data with dates ranging from early 2016 through 2022, every day.
If i only want to extract data from say 2016, is there a way i can say for example:
where date is >= 01/01/2016 & < 01/01/2017
Is there any way of doing this?
Thanks
0 commentaires
Réponse acceptée
Walter Roberson
le 10 Fév 2023
Modifié(e) : Walter Roberson
le 11 Fév 2023
convert to timetable() and use daterange()
3 commentaires
Plus de réponses (1)
Les Beckham
le 10 Fév 2023
The exact details depend on what type of data you have. A plain numeric matrix, a table, a cell array?
2 commentaires
Voir également
Catégories
En savoir plus sur Calendar dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!