iPeak

Version 7.7.1.0 (272 KB) by
Keypress operated interactive peak detector function.
Updated 4 May 2016

ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW,xcenter,xrange,MaxError,positions,names)
iPeak is a keyboard-operated Interactive Peak Finder for time series
data. Expected input forms:
ipeak(y); % Data in single y vector')
ipeak(x,y); % Data in separate x and y vectors')
ipeak(DataMatrix); % Data in two columns of DataMatrix')
ipeak(x,y,10), ipeak([x;y],10) or ipeak(y,10), specifying peak density, PeakD
ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW) specifying peak density, AmpT, SlopeT, SmoothW, FitW')
ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW,xcenter,xrange) Adding pan and zoom settings ')
ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW,xcenter,xrange,Autozero) Adding Autozeo as 9th argument')

EXAMPLE 1: One input argument; data in single vector
>> y=cos(.1:.1:100);ipeak(y)

EXAMPLE 2: One input argument; data in two columns of a matrix
>> x=[0:.01:5]';y=x.*sin(x.^2).^2;M=[x y];ipeak(M);

EXAMPLE 3: Two input arguments; data in separate x and y vectors
>> x=[0:.1:100];y=(x.*sin(x)).^2;ipeak(x,y);

EXAMPLE 4: Additional input argument (after the data) to control peak
sensitivity.
>> x=[0:.1:100];y=5+5.*cos(x)+randn(size(x));ipeak(x,y,10);
or >> ipeak([x;y],10); or >> ipeak(humps(0:.01:2),3)
or >> x=[0:.1:10];y=exp(-(x-5).^2);ipeak([x' y'],1)
T. C. O'Haver (toh@umd.edu),
http://terpconnect.umd.edu/~toh/spectrum/PeakFindingandMeasurement.htm

Cite As

Tom O'Haver (2024). iPeak (https://www.mathworks.com/matlabcentral/fileexchange/23850-ipeak), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Peak finding and measurement, 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

ipeak7/

Version Published Release Notes
7.91.0.0

Fixed bug in halfwidth measurements of flat-top shape mode.

7.9.0.0

Version 7.5 April, 2016, Added Flat top peak shape (ShapeMode=2). Fixed bug in fitting error calculations.

7.7.1.0

Bug fix

7.7.0.0

Improved performance for detecting narrow spikes in the flat-top mode (shapemode 2)

7.3.0.0

Version 7.3 October, 2015, relocates peak numbers above peaks on upper and lower graphs; Reports FWHM for Voigt shapes (shape numbers 20 and 30).

1.38.0.0

Version 7.1 adds improved Octave compatibility and includes 33 model peak shapes for curve fitting.

1.37.0.0

Version 6 adds an ensemble averaging function (Shift-E).

1.36.0.0

Version 5.96 adds interpolation function (Shift-I).

1.35.0.0

Version 5.9 adds relative % fitting error as 6th column of peak table

1.34.0.0

Version 5.8: Includes version 4.2 of peakfit.m, adds Voigt profile shape and flat baseline mode for iterative least-squares fits.

1.33.0.0

Version 5.3 adds table of summary statistics of the maximum, minimum, average, percent standard deviation, and displays histograms of the peak intervals (the x-axis interval between adjacent detected peaks), heights, widths, and areas.

1.32.0.0

Version 5: Faster jump between peaks with spacebar and tab keys; other small bug fixes

1.31.0.0

Version 4.1: peakfit internal function updated to version 3.3. Bug fixes.

1.28.0.0

Version 4.0, August, 2012, adds 'H' key to help in detecting 'shoulders' and poorly-resolved peaks.

1.25.0.0

Typo correction.

1.24.0.0

Version 3.9: Bug fixes; replaced internal findpeaks function with version 4; FitWidth now equals number of points, not number of intervals.

1.22.0.0

Version 3.9: Bug fixes; replaced internal findpeaks function with version 4; FitWidth now equals number of points, not number of intervals.

1.21.0.0

Version 3.8 adds manual entry of AmpT after entering number of click points for background subtraction; '0' key to set minimum to zero.

1.19.0.0

Version 3.7, Adds valley detection mode (U key)

1.17.0.0

Bug fixes

1.15.0.0

Version 3.2 has better noise

1.14.0.0

Version 3 adds iterative least-squares curve fitting with selected peak shapes.

1.11.0.0

Edited description

1.10.0.0

Version 2 allows specifying the initial values of pan and zoom. Also the 'IDpeak' function compares the found peak positions (maximum x-values) to a database of known peaks and identifies matching peaks in the signal.

1.8.0.0

Improved keyboard error handling

1.7.0.0

Includes embedded functions that were omitted in previous version.

1.6.0.0

Several enhancements to UI and input argument flexibility. Added baseline restore function.

1.4.0.0

Improved graphics performance on Matlab 7.8 (R2009a)

1.3.0.0

Version 1.1 adds "L" keypress to toggle peak labels in upper panel ON and OFF. Peak shown in the upper panel (zoom-in view) are labeled with peak position, height, and width, which changes in real-time as the peak detection parameters are varied.

1.1.0.0

Revised description

1.0.0.0