Azzera filtri
Azzera filtri

Hot to plot maximum y value for group by each x

1 visualizzazione (ultimi 30 giorni)
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 Commento
the cyclist
the cyclist il 30 Ago 2020
Can you upload a sample of the data, instead of an image of the data (which is impossible to use).

Accedi per commentare.

Risposte (1)

Cris LaPierre
Cris LaPierre il 30 Ago 2020
It looks like your data is in a table. If so, use groupsummary to create the data to plot.
maxTbl = groupsummary(dataTbl,"Alumn","max","Sheet");
Then plot the summary data
plot(maxTbl.Alumn,maxTbl.max_Sheet)
Just a caution - this code is untested.

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by