finding the extreme points

I have a set a=[0.4,0.3,0.48,0.32,0.12,0.42] .I plotted this plot(a).I need to find all the extreme points (minimum and maximum)and I need to mark it in the graph.How I can do this.Please help me.

5 件のコメント

Rik
Rik 2019 年 9 月 19 日
What have you tried? I doubt it would be difficult to find the max and min functions.
Silpa K
Silpa K 2019 年 9 月 19 日
Using max and min functions finding the maximun and minimum functions is possible.But how to find all extreme points.Then how can I mark all the extreme points in a.
Rik
Rik 2019 年 9 月 19 日
There are only 2 extreme points. If you want to find local maxima and minima you should try the findpeaks function. Your vector seems a bit too small for local minima and maxima to make sense.
Silpa K
Silpa K 2019 年 9 月 19 日
If it is very large,how can I find all min and maxScreenshot (30).png
Rik
Rik 2019 年 9 月 19 日
The image you posted doesn't make sense to me. The red markers don't seem to indicate local minima or maxima. So if you're looking to reproduce those red markers I don't know how to help you because your description is insufficient. If you want local minima and maxima, use the findpeaks function.

回答 (0 件)

この質問は閉じられています。

タグ

質問済み:

2019 年 9 月 19 日

閉鎖済み:

Rik
2019 年 9 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by