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.

ipfzoom(n,h)
function ipfzoom(n,h)
% Updates "start" and re-draws graph when the Zoom slider is moved
% Tom O'Haver, October 2006

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

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

axes(h);
h2=gca;

Contact us at files@mathworks.com