How to get the no of default ticks formed in to the code when plotting a figure in matlab?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sai ram gubba
il 1 Set 2015
Risposto: Brendan Hamm
il 1 Set 2015
I am plotting the data vs time. I am using the datenum function to convert the time in to values and plotting the graphs for now. And then I want to change the X labels from datenum values to actual time. But for that I have to know the no of ticks formed.
0 Commenti
Risposta accettata
Brendan Hamm
il 1 Set 2015
You can actually just use the datetick function:
dFormat = 'mmm-yyyy'; % or whatever date format you want
datetick('x',dFormat)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Dates and Time 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!