How to display the max values of a given interval

1 回表示 (過去 30 日間)
Gabriel
Gabriel 2013 年 12 月 14 日
回答済み: Rahul punk 2019 年 4 月 1 日
I have a program that plot a graph. This graph is like a senoidal curve.
1) I need get the 3 maximum and minimun values of this graph, excluding the highest value.
2) I need too, display the max of a determined interval.
3) And last of all, i need to do the x axis of the graph present more values.
Anybody can help me?

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 12 月 14 日
doc max
doc min
doc findpeaks

Rahul punk
Rahul punk 2019 年 4 月 1 日
m = [7;1;4;4;12;2;6;10;2];
[temp,originalpos] = sort( m, 'descend' );
n = temp(1:3)
p=originalpos(1:3)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by