subset the plot for the subset of x range
이전 댓글 표시
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?
채택된 답변
추가 답변 (1개)
Walter Roberson
2020년 5월 25일
0 개 추천
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
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!