Re: Findpeaks function

Blaz <[email protected]>
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>
I have written some code to solve this although it is not quite what I was
looking for. If somoeone can make a use of it, here it is

a=dlmread('C:\Users\pblaz\Documents\MEGAsync\Octave\data.dat','', 0,0);
t=a(:,1);
x=a(:,2);
y=a(:,3);

c=abs(x+y);

index=[];
ic=1;
for i=1:length(c)
  if c(i) < 600 && c(i) > 200 && x(i) < 500 && y(i) < 500
    index(ic)=i;
    ic=ic+1;
  end
end
clf

plot(t,x,t,y,t(index),x(index),'orb') 



--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.