Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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)

Respuestas (1)

Matt J
Matt J el 10 de Mzo. de 2013
Editada: Matt J el 10 de Mzo. de 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