Code covered by the BSD License  

Highlights from
Interactive Peak Fitter, version 2.2

image thumbnail
from Interactive Peak Fitter, version 2.2 by Tom O'Haver
A peak fitting program for time-series signals.

ipfpan(n,h)
function ipfpan(n,h)
% Re-draws graph and updates "start" when the Pan slider is moved
% Tom O'Haver, July 2006

global x
global y
global xx
global yy
global xo
global dx
global start

xo=round(n);
[xx,yy,start]=RedrawSignal(x,y,xo,dx);
axes(h);
h2=gca;

Contact us at files@mathworks.com