What are possible issues if ''datetick()'' has no effect on the date format?
Afficher commentaires plus anciens
Good morning,
What are possible issues if ''datetick()'' has no effect on the date format in a plot? I already used ''datenum()'' but still ''datetick()'' doesn't work. Matlab apparently automatically chooses to use the format MM/DD, but I am looking for DD/MM/YY. Any ideas?
Thank you in advance!
5 commentaires
Walter Roberson
le 15 Sep 2018
Which release are you using, and what is class() of the first data you plot on your axis? Please show the datetick call.
beginner94
le 15 Sep 2018
Modifié(e) : beginner94
le 15 Sep 2018
dpb
le 15 Sep 2018
May not see it, but unless you've a release prior to R2016b, I'd strongly suggest to dump the archaic datenum in favor of datetime which has builtin support for datetime formats in overloaded plot functions.
Early releases of datetime had overloaded plotting but internally did still use datenum.
beginner94
le 15 Sep 2018
Réponses (0)
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!