
Differentiate Formula

JBertrand
I am collecting analog electrical data and need to take periodic slopes from my curve. It is fairly noisy but I can easily get rid of that with smoothing. What I really need to be able to do is apply the following equation to my 1D wave.
f'=(f(point + h)-f(point))/h h= width of "box"
The differentiate function does a point by point differentiation. This not appropriate for me, I need to be able to set the width of the "box" and calculate a slope from it. I am not familiar enough with Igor Pro 5 to write the function. Any guidance would be very much appreciated.
Regards,
JBertrand
Then create a wave to hold the slopes and apply the function using x as the index in the wave assignment. For example:
See the attached graph, too.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
March 8, 2011 at 10:12 pm - Permalink