dates in x axis plot
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fabio Ambrosini
le 24 Juin 2021
Réponse apportée : KSSV
le 24 Juin 2021
I have a string vector of Dates and a vector of values that correspond to the y value. I want to have dates in x axis on the plot, how con I do?
0 commentaires
Réponse acceptée
KSSV
le 24 Juin 2021
Convert your date into class datetime you can striaght away use plot.
t = datetime(2021,1,1):datetime(2021,12,31) ;
y = rand(size(t)) ;
plot(t,y)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
