Removing Leap day from my timetable
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hamed Hedayatnia
le 28 Avr 2020
Commenté : Adam Danz
le 28 Avr 2020
I need to remove leap days of all years from my timetable. I mean all values belong to 29 feb. my timetable is a hourly time table.
1 commentaire
Adam Danz
le 28 Avr 2020
That data you attached does not contain a timetable or any kind of datatime data.
Réponse acceptée
Adam Danz
le 28 Avr 2020
TT is the timetable and TT.Time is the time column.
isLeapDay is a logical vector identiying the rows of TT that belong to a leap day.
isLeapDay = month(TT.Time)==2 & day(TT.Time)==29;
TT(isLeapDay,:) = []; % remove leap days.
8 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Identification 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!