Peak detection in a Filled area 2-D plot
Mostra commenti meno recenti
Hello,
i've been working on "Filled area 2-D plot",
I have this image(that i attached) ....how can i detect maximum value of Y?
as you see in this image Y is 11.
Thanks a lot.

3 Commenti
darova
il 5 Lug 2020
Can you attach the data?
masha ghasemi
il 5 Lug 2020
Image Analyst
il 5 Lug 2020
Give us data and code to reproduce that plot.
Risposte (1)
Sumeet Singh
il 5 Lug 2020
1 voto
3 Commenti
masha ghasemi
il 5 Lug 2020
Sumeet Singh
il 5 Lug 2020
If data is available to you then you may try this code.
[max_col, rows] = max(data)
[peak, col_idx] = max(max_col) %peak -> peak value in data, col_idx -> column index of peak value
row_idx = rows(col_idx) %col_idx -> row index of peak value
Stacked value can be calculated by summing up the row containing peak value
masha ghasemi
il 5 Lug 2020
Categorie
Scopri di più su Descriptive Statistics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!