Effacer les filtres
Effacer les filtres

can anybody tell me how can i acess individual location of locs for further use

2 vues (au cours des 30 derniers jours)
Rahul
Rahul le 10 Mar 2013
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)

Réponses (1)

Matt J
Matt J le 10 Mar 2013
Modifié(e) : Matt J le 10 Mar 2013
Don't you just mean
locs(1),
locs(2),
locs(3),
etc... ?

Community Treasure Hunt

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

Start Hunting!

Translated by