What are possible issues if ''datetick()'' has no effect on the date format?
Show older comments
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 Comments
Walter Roberson
on 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
on 15 Sep 2018
Edited: beginner94
on 15 Sep 2018
dpb
on 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
on 15 Sep 2018
Answers (0)
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!