Grouping data into bins and then plotting them
2 次查看(过去 30 天)
显示 更早的评论
Hello, I am trying to read some tables into matlab, the tables contain the variable 'hour' to represent the time when the data accurued. after reading the tables we would like to bin the data in the table according to the 'hour' variable and then plot the data to see how they are changing.
for example: we would like to see how the data is changing every three hours in the day, so from all the data set we have we would like to group the data of the first three hours and then plot them and see and so on for the rest of 24hrs. How can we possibly implement that?
0 个评论
采纳的回答
KSSV
2021-10-17
You can calculate the every three hours mean using the fuction retime. Read about it. To see the variation of every hours, striaght aways you can use plot.
10 个评论
KSSV
2021-10-17
Using historgram helps you to split the data into intervals, get the indices of the intervel bins and then use these indices to plot using in your required way.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!