Asked by Silpa K
on 18 Sep 2019 at 13:19

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.

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

Opportunities for recent engineering grads.

Apply Today
## 13 Comments

## Geoff Hayes (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747304

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747312

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747353

## Rik (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747565

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747604

## Rik (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747616

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747783

## Rik (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747813

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_747925

## darova (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_748060

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_748173

## darova (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_748187

## Silpa K (view profile)

## Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/480951-extreme-points-finding-from-set#comment_748192

Sign in to comment.