Hot to plot maximum y value for group by each x
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353321/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/353324/image.png)
1 commentaire
the cyclist
le 30 Août 2020
Can you upload a sample of the data, instead of an image of the data (which is impossible to use).
Réponses (1)
Cris LaPierre
le 30 Août 2020
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 commentaires
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!