3.2

3.2 | 5 ratings Rate this file 100 downloads (last 30 days) File Size: 36.06 KB File ID: #12557

Interactive Peak Fitter, version 2.2

by Tom O'Haver

 

05 Oct 2006 (Updated 20 May 2008)

Code covered by BSD License  

A peak fitting program for time-series signals.

Download Now | Watch this File

File Information
Description

A peak fitting program for time-series signals, with sliders to adjust the parameters conveniently. Uses an non-linear optimization algorithm to decompose a complex, overlapping-peak signal into its component parts. The objective is to determine whether your signal can be represented as the sum of fundamental underlying peaks shapes. Accepts signals of any length, including those with non-integer and non-uniform x-values. Fits Gaussian, exponentially-broadened Gaussian, Lorentzian, Pearson, and Logistic shapes (expandable to other shapes). Can be operated either by mouse-controlled interactive sliders or by keyboard shortcuts. Includes a self-contained demo. See http://www.wam.umd.edu/~toh/spectrum/InteractivePeakFitter.htm for more information. Version 2.2, May, 2008, computes the area of each component peak using trapezoidal method.

Acknowledgements
This submission has inspired the following:
Interactive Peak Fitter (Version 4.1)
MATLAB release MATLAB 6.5 (R13)
Zip File Content  
Other Files
InteractivePeakFitter22/DemoInteractivePeakArea.asv,
InteractivePeakFitter22/DemoInteractivePeakFitter.m,
InteractivePeakFitter22/ExpBroaden.m,
InteractivePeakFitter22/expgaussian.m,
InteractivePeakFitter22/FitAndPlot.asv,
InteractivePeakFitter22/FitAndPlot.m,
InteractivePeakFitter22/fitexpgaussian.m,
InteractivePeakFitter22/fitgaussian.m,
InteractivePeakFitter22/fitlogistic.m,
InteractivePeakFitter22/fitlognormal.m,
InteractivePeakFitter22/fitlorentzian.m,
InteractivePeakFitter22/fitNewPeakShape.m,
InteractivePeakFitter22/fitpearson.m,
InteractivePeakFitter22/fitpulse.m,
InteractivePeakFitter22/gaussian.m,
InteractivePeakFitter22/InteractivePeakFitter.asv,
InteractivePeakFitter22/InteractivePeakFitter.m,
InteractivePeakFitter22/ipf.m,
InteractivePeakFitter22/ipf10down.m,
InteractivePeakFitter22/ipf10up.m,
InteractivePeakFitter22/ipfbackground.m,
InteractivePeakFitter22/ipfcustom.m,
InteractivePeakFitter22/ipfextra.m,
InteractivePeakFitter22/ipfnudgedown.m,
InteractivePeakFitter22/ipfnudgeup.m,
InteractivePeakFitter22/ipfpan.m,
InteractivePeakFitter22/ipfpeaks.m,
InteractivePeakFitter22/ipfpeaksmouseup.m,
InteractivePeakFitter22/ipfrefit.m,
InteractivePeakFitter22/ipfshape.m,
InteractivePeakFitter22/ipfzoom.m,
InteractivePeakFitter22/ipfzoom10down.m,
InteractivePeakFitter22/ipfzoom10up.m,
InteractivePeakFitter22/ipfzoomdown.m,
InteractivePeakFitter22/ipfzoomup.m,
InteractivePeakFitter22/KeyPressTest.m,
InteractivePeakFitter22/logistic.m,
InteractivePeakFitter22/lognormal.m,
InteractivePeakFitter22/lorentzian.m,
InteractivePeakFitter22/NewPeakShape.m,
InteractivePeakFitter22/PeakFitter.txt,
InteractivePeakFitter22/pearson.m,
InteractivePeakFitter22/pulse.m,
InteractivePeakFitter22/RedrawSignal.asv,
InteractivePeakFitter22/RedrawSignal.m,
InteractivePeakFitter22/rtslid.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (10)
06 Feb 2007 Belen Rial Franco

Hi
I am trying this program using a 7.4.0 (R2007a) Matlab version installed under a Intel-based Mac but is not working.

??? Error using ==> warning
Unknown setting or incorrect message identifier 'Exiting:'.

Error in ==> InteractivePeakFitter at 21
warning('OFF', 'Exiting:')

Could you help me?

Thank you very much

23 Mar 2007 Ann brown

Works very well, only sometimes it crashes or is very slow. Esspecially the keypressfunctionality sometimes has problems.

18 Apr 2007 Tom O'Haver

Ann Brown:

Thanks for the feedback. Can you tell me which operating system and which version of Matlab you use? Also, what error messages you get when the program "crashes"? This information might be useful to me in developing the next version. Thanks.

21 May 2007 Walt Brown

Thanks for this program is very good. I would like to have a new profile about Doniach-sunjic but I´m not programmer. If you have it, can you send me?

26 Feb 2008 Greg Fichter

This has an interesting user interface but the sliders kept crashing. It appears to incorporate John D'Errico's excellent fminsearchbnd function, but his name is clipped from the file. Sorry, but this is pretty shameful plagarism, even if the code worked.

27 Feb 2008 Tom O'Haver

I apologize to John D'Errico and to the Matlab File Exchange for failing to attribute the fminsearchbnd function to John D'Errico. I was using an earlier version of fminsearchbnd, file date 6/7/2006. I did not realize that there was a subsequent newer version dated 9/25/2006. Evidently the earlier version did not have his name in the comments - I certainly did not purposefully cut it out. In retrospect I should have been more careful. I'll make the change as soon as practical.

07 Apr 2008 Manjree Garg

Hi,

This is a good interface. Is there any way to know how the fitting functions (e.g. Gaussian, Lorentzian etc.) are derived using half-width (which I guess is equal to three Sigma) rather than Sigma?

05 Sep 2008 Tom O'Haver

I've added ipf.m, a keyboard-operated version (without the sliders that have been giving some people problems), written as a single self-contained m-file.

06 Dec 2008 Laurence Lurio

I could not get this to work. I tried the DemoInteractivePeakFitter program and got an error

??? Error using ==> warning
Unknown setting or incorrect message identifier 'exiting'.

I think this is the same error which Belen Rial Franco got.

27 Dec 2008 Tom O'Haver

I've placed an updated version of this file at http://terpconnect.umd.edu/~toh/spectrum/ipf.m
as of December 26, 2008. It removes the "Warning" command that was causing an error in Matlab 7, and it eliminates the warning message about integer indexes with the colon operator. Tom O'Haver

Please login to add a comment or rating.
Updates
09 Oct 2006

Bug fixes

09 Oct 2006

Bug fixes

17 Oct 2006

Enhancements
Add or update the screenshot

17 Oct 2006

Bug fixes

18 Oct 2006

Bug fixes

23 Oct 2006

Enhancements

31 Oct 2006

enhancements

01 Nov 2006

bug fixes

10 Nov 2006

Enhancements

09 Mar 2008

bug fixes

20 May 2008

Version 2.2, May, 2008, computes the area of each component peak using the trapezoidal method and adds that to the FitResults matrix.

Tag Activity for this File
Tag Applied By Date/Time
chemistry Tom O'Haver 22 Oct 2008 08:42:53
physics Tom O'Haver 22 Oct 2008 08:42:53
peak fitting Tom O'Haver 22 Oct 2008 08:42:53
curve fitting Tom O'Haver 22 Oct 2008 08:42:53
time series Tom O'Haver 22 Oct 2008 08:42:53
decomposition Tom O'Haver 22 Oct 2008 08:42:53
resolution Tom O'Haver 22 Oct 2008 08:42:53
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com