Usage of xticks() when plotting a timetable
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    giacomo labbri
 il 3 Giu 2020
  
    
    
    
    
    Risposto: Steven Lord
    
      
 il 3 Giu 2020
            Hi, 
I am plotting the content of a timetable that contains a variable over a few months. The xtick in automatic mode are set just every 5 days or so but i would like to have a xtick for each day. I understood that the funcion xticks might be helpful but I was wondering if there is a way to obtain a tick for each day without manually specify them. 
Thanks in advance, 
Giacomo
0 Commenti
Risposta accettata
  Steven Lord
    
      
 il 3 Giu 2020
        If your concern about "manually specify[ing] them" is that you don't want to have to type each one, you don't have to type each one.
T = datetime('today');
theWeek = T + days(0:6)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Annotations in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

