Peak detection in a Filled area 2-D plot
2 ビュー (過去 30 日間)
古いコメントを表示
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/327182/image.png)
3 件のコメント
回答 (1 件)
Sumeet Singh
2020 年 7 月 5 日
3 件のコメント
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
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!