how to plot two figures in one figure with different axes
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
amirhossein sarfi
le 13 Mai 2019
Commenté : amirhossein sarfi
le 13 Mai 2019
I am trying to plot flows collected in different time of the day for different days in the same plot. As the moments of collection are not exactly the same for each day the second plot is drawn in the continues of the first one:
whle I need them something like this:
2 commentaires
Jan
le 13 Mai 2019
And what are your inputs? If you post the relevant part of the code, we can suggest a modification. But without seeing the code, the readers have to invent it.
Réponse acceptée
Jan
le 13 Mai 2019
Simply replace the line:
date2 = datenum(year2, month2, day2, hour2, min2, sec2);
by
date2 = datenum(year1, month1, day1, hour2, min2, sec2);
Then the data will use the same day.
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!