View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Background correction

4.7 | 6 ratings Rate this file 49 Downloads (last 30 days) File Size: 4.92 KB File ID: #27429 Version: 1.4
image thumbnail

Background correction


Vincent Mazet (view profile)


30 Apr 2010 (Updated )

Compute an estimation of the background (aka baseline) in chemical spectra.

| Watch this File

File Information

This program estimates the background (or baseline) of optical spectra by the polynomial minimizing a cost function. If the cost function was quadratic, the solution is the least squares estimation, which is not appropriate in this problem. Instead, we need to use of non-quadratic cost function such as the symmetrical Huber function, the symmetrical truncated quadratic or their respective asymmetrical shape.

The program backcor is the new version of the former backest (released in 2008). The main difference is the availability of a graphical user interface (of course, it can be not used).

The program is written in Matlab and should work with Matlab 6 (or higher). The ZIP file to download contains two Matlab script:
    * a demonstration script (demo);
    * the main function (backcor) which can be run with or without a graphical user interface.

Type help backcor in Matlab to get the syntax of the function.


This file inspired Beads: Baseline Estimation And Denoising W/ Sparsity (Chromatogram Signals).

MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
04 Jan 2017 David Kim

11 Dec 2016 Mustafa UNAL

28 Dec 2015 Claus

Claus (view profile)

04 Aug 2014 Iman

Iman (view profile)


I'm trying to use this scrip for my signal. But I can not do it because I don't know what I should put for 'n' (wavelength) in input argument.
Any help will be appreciated


Comment only
10 Feb 2014 Laszlo

Laszlo (view profile)

Very useful. Thanks!

03 Dec 2013 Kevin Hellemans

20 Feb 2013 Sanjay Manohar

08 Oct 2011 hooman1988

thanks for this.

Comment only
30 Apr 2010 1.1

Add a link to my webpage.

12 Nov 2012 1.2

Fix bug concerning the sorting of data.

16 Nov 2012 1.3

Add a comment in the help.

20 Feb 2013 1.4

Update the link to my webpage.

Contact us