What are possible issues if ''datetick()'' has no effect on the date format?

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

Which release are you using, and what is class() of the first data you plot on your axis? Please show the datetick call.
beginner94
beginner94 le 15 Sep 2018
Modifié(e) : beginner94 le 15 Sep 2018
Just found out (after searching for ages) that I called datetick twice and differenty, that's why it didn't work...
Thank you although!
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.
I'm using R2007b...:/
But thank you!
jonas
jonas le 15 Sep 2018
Modifié(e) : jonas le 15 Sep 2018
wow, you need to update your release. There's been so many nice features implemented since 2007 :)

Connectez-vous pour commenter.

Réponses (0)

Catégories

Modifié(e) :

le 15 Sep 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by