Hot to plot maximum y value for group by each x
3 ビュー (過去 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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!