| Description |
function P=ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW)
Keyboard-operated Interactive Peak Finder for data in data matrix "DataMatrix", with x values in row 1 and y values in row 2. Returns the peak table in P (Peak #, Position, Height, Width.) See http://terpconnect.umd.edu/~toh/spectrum/PeakFindingandMeasurement.htm
T. C. O'Haver (toh@umd.edu), Version 1.1, April 2009.
EXAMPLE 1: x=[0:.1:100];
y=(x.*sin(x)).^2;
ipeak([x' y']);
Displays DataMatrix [x' y'] with arbitrary starting
values for peak parameters AmpT, SlopeT, SmoothW, FitW.
EXAMPLE 2: x=[0:.1:100];
y=5+5.*cos(x)+randn(size(x));
ipeak([x' y'],10);
The additional argument (10) is an estimate of the peak density (maximum number of peaks that would fit into the data record).
EXAMPLE 3: ipeak([x' y'],0,.0001,33,33);
As above, but specifies exact initial values of AmpT, SlopeT, SmoothW, FitW.
Keyboard Controls:
Pan signal left and right: Coarse pan: < and >
Fine pan: left and right cursor arrow keys
Zoom in and out: Coarse zoom: / and '
Fine zoom: up and down cursor arrow keys
Adjust AmpThreshold: A,Z (A increases, Z decreases)
Adjust SlopeThreshold: S,X (S increases, X decreases)
Adjust SmoothWidth: D,C (D increases, C decreases)
Adjust FitWidth: F,V (F increases, Z decreases)
Baseline: B, then click left and right baseline
Print peak table: P Prints Peak #, Position, Height, Width
Print commands: K Prints this list
Print parameters Q (Prints AmpT, SlopeT, SmoothW, FitW)
Print report R Prints Peak table and parameters
Peak labels ON/OFF L Toggles peak labels in upper panel
|