How to query the date format when using dynamicDateTicks.m?
16 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can we query the date format when using dynamicDateTicks.m? The use case is dynamically displaying a corresponding date/time format in the axis label.
0 Commenti
Risposte (1)
Seth Furman
il 15 Ott 2020
See my recommendation to use datetime data when plotting, related to your other question, here:
If you use datetime data, you can easily query the datetime format from the axes using the following functions
For example,
>> plot(datetime('today'):caldays:30*caldays+datetime('today'),1:31)
>> xfmt = xtickformat
xfmt =
'MMM dd'
0 Commenti
Vedere anche
Categorie
Scopri di più su Dates and Time 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!