summaryrefslogtreecommitdiff
path: root/macros/zerocrossing.sci
blob: 41b51d68e8a3b5470ed7d1a459d5ca952a04ff24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function x = zerocrossing (w, y)
//This function estimates the points at which a given waveform crosses the x-axis.
//Calling Sequence
//x = zerocrossing (w, y)
//Parameters 
//w: 
//y:
//x:
//Description
//This is an Octave function.
//This function estimates the points at which a given waveform y = y(w) crosses the x-axis. It uses linear interpolation.
//Examples


funcprot(0);
rhs = argn(2)
if(rhs~=2)
error("Wrong number of input arguments.")
end
x = callOctave("zerocrossing", w, y)

endfunction