Plot of a Time Variable
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
so I have a variable that has the time of arrival of different messages from 00:00:00 to 23:59:59. What I want is to get a figure of bars where each bar has the messages from an Hour. There would be a total of 24 bars.
How could I do it?
댓글 수: 4
답변 (1개)
KSSV
2021년 10월 18일
As you have data every second, you need to do hourly mean to get 24 values. You have two options.
- Reshape the data into 24*m; use mean and then plot the data.
- USe retime to get hourly average and then plot.
참고 항목
카테고리
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!