Removing Leap day from my timetable
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Hamed Hedayatnia
 il 28 Apr 2020
  
    
    
    
    
    Commentato: Adam Danz
    
      
 il 28 Apr 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 Commento
  Adam Danz
    
      
 il 28 Apr 2020
				That data you attached does not contain a timetable or any kind of datatime data.
Risposta accettata
  Adam Danz
    
      
 il 28 Apr 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 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Data Type Identification in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

