Removing Leap day from my timetable
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam Danz
2020-4-28
That data you attached does not contain a timetable or any kind of datatime data.
采纳的回答
Adam Danz
2020-4-28
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Timetables 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!