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
darova 2020 年 7 月 5 日
Can you attach the data?
masha ghasemi
masha ghasemi 2020 年 7 月 5 日
hello
i have an image from a face, i ploted this image using (Filled area 2-D plot),
i attached my result, i wanna find maximum Y from plot(as you see in this image is Y=11)
I coudnt use ''findpeaks'' because my output type from this kind of plot(Area) is 1*92 Area
Image Analyst
Image Analyst 2020 年 7 月 5 日
Give us data and code to reproduce that plot.

サインインしてコメントする。

回答 (1 件)

Sumeet Singh
Sumeet Singh 2020 年 7 月 5 日

1 投票

You can use findpeaks, available in Signal Processing Toolbox to find local maxima.

3 件のコメント

masha ghasemi
masha ghasemi 2020 年 7 月 5 日
Thank you
how can i use this command for (area)?
Sumeet Singh
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
masha ghasemi 2020 年 7 月 5 日
hello
i have an image from a face, i ploted this image using (Filled area 2-D plot),
i attached my result, i wanna find maximum Y from plot(as you see in this image is Y=11)
I coudnt use ''findpeaks'' because my output type from this kind of plot(Area) is 1*92 Area
please heeeelp me

サインインしてコメントする。

質問済み:

2020 年 7 月 5 日

コメント済み:

2020 年 7 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by