MATLAB Answers

Silpa K
0

Extreme points finding from set

Asked by Silpa K
on 18 Sep 2019 at 13:19
Latest activity Commented on by Silpa K
on 20 Sep 2019 at 15:41
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 Comments

Silpa K
on 20 Sep 2019 at 15:06
Sir,It is only a sample graph.I need to find all the extreme points(Present in the crust and trough)
darova
on 20 Sep 2019 at 15:28
HOw you define "extreme" point? Where is it?
Silpa K
on 20 Sep 2019 at 15:41
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.

Sign in to comment.

1 Answer

Answer by Steven Lord
on 19 Sep 2019 at 18:46

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 Comment

Silpa K
on 20 Sep 2019 at 15:10
sir,Iam not getting.

Sign in to comment.