plotting without straight lines connecting two intervals of data in a same day
조회 수: 6 (최근 30일)
이전 댓글 표시
Between 8.2hours to 12.5hrs there is no data and so a straight line appears.
How to avoid that straight lines connecting two sets of data of the same day?
댓글 수: 0
채택된 답변
Walter Roberson
2022년 4월 30일
Insert a nan into the both plot variables at that point.
You could also use multiple nan there -- so you could insert a nan for each time you expect which is not present. Only one nan is needed for plotting purposes, but sometimes one nan for each expected time is easier to deal with.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!