Best Approach for baseline correction?

What would be the best approach for baseline correction?

1 件のコメント

the cyclist
the cyclist 2019 年 10 月 2 日
I think it would be better for you to open up a new question, and try to be as descriptive as you can about what you are trying to do.
That will be better than what you did here, which was to radically change your question such that the accepted answer makes no sense now.

サインインしてコメントする。

 採用された回答

the cyclist
the cyclist 2019 年 9 月 30 日

0 投票

If x is your variable, then
x(x<0) = 0;
will change all the negative values to zero.
If that does not do what you want, you'll need to be more specific about what you mean by "shift to be above zero".

1 件のコメント

Usaid
Usaid 2019 年 9 月 30 日
編集済み: Usaid 2019 年 9 月 30 日
No, that's not what I'm looking for. What I need is after is the baseline correction for the peaks between 1100 ~ 1800 not to be below zero. This is how I did the baseline.
baseY= sgolayfilt(v, 3, 35); %smoothing data
dY = v - baseY;
filter_size2 = 5; %filter size
b = (1/filter_size2)*ones(1,filter_size2);
a = 1;
y = filtfilt(b,a,dY);
plot(x, dY,'r','linewidth',2)
set (gca,'xdir', 'reverse');

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

質問済み:

2019 年 9 月 30 日

コメント済み:

2019 年 10 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by