How can I plot vertical lines which indicates seasons in a single time series?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have wind speed values of 2012. I used timeseries feature and I can plot them. x-axis:time (Date and hour , Cell array format) y-axis:values. And I want to draw vertical lines which indicates summer,fall,winter and spring. How can I plot this four vertical lines on a graph?
댓글 수: 0
채택된 답변
Image Analyst
2013년 7월 9일
Try this:
yl = ylim;
line([xValue, xValue], [yl(1), yl(2)]);
You can also add options like the color of the line and its width.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!