[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Findpeaks function
From: |
Blaz |
Subject: |
Re: Findpeaks function |
Date: |
Thu, 25 Feb 2021 05:33:04 -0600 (CST) |
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
Re: Findpeaks function, Juan Pablo Carbajal, 2021/02/26