Hot to plot maximum y value for group by each x
2 次查看(过去 30 天)
显示 更早的评论
I have y axis = Alumn [data type double] , x axis = Sheet [data type datetime]
I want to plot grap maximum y value for group by each x
The information looks like this :
1 个评论
the cyclist
2020-8-30
Can you upload a sample of the data, instead of an image of the data (which is impossible to use).
回答(1 个)
Cris LaPierre
2020-8-30
maxTbl = groupsummary(dataTbl,"Alumn","max","Sheet");
Then plot the summary data
plot(maxTbl.Alumn,maxTbl.max_Sheet)
Just a caution - this code is untested.
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!