Peak detection in a Filled area 2-D plot
이전 댓글 표시
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
darova
2020년 7월 5일
Can you attach the data?
masha ghasemi
2020년 7월 5일
Image Analyst
2020년 7월 5일
Give us data and code to reproduce that plot.
답변 (1개)
Sumeet Singh
2020년 7월 5일
1 개 추천
댓글 수: 3
masha ghasemi
2020년 7월 5일
Sumeet Singh
2020년 7월 5일
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
2020년 7월 5일
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!