can anybody tell me how can i acess individual location of locs for further use
Show older comments
the matlab code till now is as
[pks,locs] = findpeaks(x1,'MINPEAKDISTANCE',33,'MINPEAKHEIGHT',0.12);
n = length (x1);
t1 = [0:n-1]/fs;
figure(9)
plot(t1,x1); hold on;
plot(t1(locs),pks,'k^','markerfacecolor',[1 0 0]);
hold on;
find(x1==0)
Answers (1)
Don't you just mean
locs(1),
locs(2),
locs(3),
etc... ?
Categories
Find more on Just for fun in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!