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
참고 항목
카테고리
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!