subset the plot for the subset of x range
Mostra commenti meno recenti
I have a plot of date time temperature from Jan1 to Dec 31. I want to create a plot of the same data for Jan 1 to Jun 31. Is there any simpler way to do this?
Risposta accettata
Più risposte (1)
Walter Roberson
il 25 Mag 2020
0 voti
See isbetween() or use find(date_vector < last_date_to_plot, 1, 'last') in order to find the end of the group.
In the special case that your time information is from a rowtimes field of a timetable, see https://www.mathworks.com/help/matlab/ref/timerange.html
1 Commento
alpedhuez
il 26 Mag 2020
Categorie
Scopri di più su Surface and Mesh Plots in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!