Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Baseline Subtraction

Subject: Baseline Subtraction

From: Sina

Date: 22 Jul, 2013 14:55:10

Message: 1 of 4

Hi,

I am trying to subtract a baseline from a x-y plot to have the peaks stand out only. I am having trouble applying the bf function and similar ones found in MATLAB Central. I have an x array and a y array (of course both are the same length). The plot has a baseline with lots of peaks on it, all I want to do is to have the baseline subtracted from the initial y values to have a new plot of peaks. I would very much appreciate help on that.

Cheers,
Sina

Subject: Baseline Subtraction

From: Chris

Date: 22 Jul, 2013 15:59:11

Message: 2 of 4

Can you post some code showing what you've tried, or explain where what you are doing fails?

Subject: Baseline Subtraction

From: Marc

Date: 23 Jul, 2013 04:14:11

Message: 3 of 4

"Chris " <cfweise@yahoo.com> wrote in message <ksjksf$9ms$1@newscl01ah.mathworks.com>...
> Can you post some code showing what you've tried, or explain where what you are doing fails?

I agree. There are a variety of methods for removing the baseline but most of these depends on how your baseline looks along with how your peaks look.

Is it "choppy"? Is it fairly "linear" or does it have a noticeable slope?

Supplying some data along with what you tried already will give us a better chance at helping.

Subject: Baseline Subtraction

From: Barry Williams

Date: 23 Jul, 2013 17:48:10

Message: 4 of 4

"Marc" wrote in message <kskvuj$omi$1@newscl01ah.mathworks.com>...
> "Chris " <cfweise@yahoo.com> wrote in message <ksjksf$9ms$1@newscl01ah.mathworks.com>...
> > Can you post some code showing what you've tried, or explain where what you are doing fails?
>
> I agree. There are a variety of methods for removing the baseline but most of these depends on how your baseline looks along with how your peaks look.
>
> Is it "choppy"? Is it fairly "linear" or does it have a noticeable slope?
>
> Supplying some data along with what you tried already will give us a better chance at helping.

As noted, there are a lot of baseline correction methods. What is your data? There is likely to be someone out here who works with data of your type and can help out if you can give specific examples of what you have tried and why you aren't satisfied with the results.

It would also be helpful if you could explain why you are doing the baseline correction. Will you be integrating the areas under the peaks, or do you have something else in mind?

Barry

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us