How to pick maximum value in group?
Ältere Kommentare anzeigen
I have created groups with repeating value in a matrix and elements in the group are matched with matrix having its probability value. Now I have to find the maximum probability value in each group.
Example:
group n =
prob 1 prob 2 prob 3 maxprob prob 5
Expected output:
group n = repeated value
maxprob
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 20 Apr. 2022
0 Stimmen
findgroups(a). Then splitapply(@max)
1 Kommentar
ASHA PON
am 22 Apr. 2022
Kategorien
Mehr zu Stair Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!