# plotting graph and mark points

4 views (last 30 days)

Show older comments

Silpa K
on 15 Sep 2019

Commented: Walter Roberson
on 22 Feb 2021

##### 3 Comments

dpb
on 15 Sep 2019

### Accepted Answer

Walter Roberson
on 16 Sep 2019

d = xlsread('FaceFour_TRAIN.xlsx');

plot(d);

hold on

idx = find(d>0.04);

pointsize = 20;

scatter(idx, d(idx), pointsize, 'b', '*')

hold off

### More Answers (2)

inusah alhassan
on 21 Feb 2021

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,10);

sidx = secidx(maxidx);

x = 1:length(s);

plot(x, s, 'b-', sidx, s(sidx), 'go')

##### 1 Comment

### See Also

### Categories

### Community Treasure Hunt

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

Start Hunting!