Plot of a Time Variable

2 次查看(过去 30 天)
flashpode
flashpode 2021-10-14
评论: flashpode 2021-10-18
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 个评论
flashpode
flashpode 2021-10-18
Hi yeah I was meant to do that
flashpode
flashpode 2021-10-18
could you explain why if I put:
bar(Time_AIS1)
I do not get the same figure, I mean my variable is already a duration

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2021-10-18
As you have data every second, you need to do hourly mean to get 24 values. You have two options.
  1. Reshape the data into 24*m; use mean and then plot the data.
  2. USe retime to get hourly average and then plot.
  1 个评论
flashpode
flashpode 2021-10-18
I have a variable of duration and retime gives me a timetable

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by