Extreme points finding from set

1 回表示 (過去 30 日間)
Silpa K
Silpa K 2019 年 9 月 18 日
コメント済み: Silpa K 2019 年 9 月 20 日
d = xlsread('FaceFour_TRAIN.xlsx')
s = d(1:1,2:end);
fa = movstd(s,20,1);
secarray = movstd(fa,20,1) ;
secidx = find(secarray>.04);
f = secarray(secidx);
[maxvals, maxidx] = maxk(f,14);
sidx = secidx(maxidx);
x = 1:length(s);
key=plot(x, s, 'b-', sidx, s(sidx), 'go')
here the maximum points are extracted and plotted.I need to check and find only the extreme points from this,how can I do this.Please help me.
  13 件のコメント
darova
darova 2019 年 9 月 20 日
HOw you define "extreme" point? Where is it?
Silpa K
Silpa K 2019 年 9 月 20 日
The maximum peak points present in the crust and trough.If I use findpeaks(d),then iam not getting the answer.
1×0 empty double row vector is the output coming.

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

回答 (1 件)

Steven Lord
Steven Lord 2019 年 9 月 19 日
I suspect some combination of islocalmin, islocalmax, and/or ischange will identify the points you've called out with + markers in your plot. All three of these functions were introduced as part of MATLAB in release R2017b.
  1 件のコメント
Silpa K
Silpa K 2019 年 9 月 20 日
sir,Iam not getting.

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

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by