How to mask the peak of a curve ?

2 ビュー (過去 30 日間)
Atharva Joshi
Atharva Joshi 2020 年 4 月 6 日
コメント済み: Image Analyst 2020 年 4 月 7 日
  3 件のコメント
Image Analyst
Image Analyst 2020 年 4 月 6 日
What do you mean by "mask the peak"?
  1. Do you mean that you want to erase the peak by setting it to zero?
  2. Do you mean that you want to erase outside the peak by setting it to zero?
  3. Do you mean that you want to find the "bottoms" of the peak and fit a line across the base to make it look as if it weren't there?
  4. Do you want to do a baseline correction, to basically detrend the data and make the baseline flat?
  5. Do you want to extract only the peak portion and exclude other parts?
or something else? Which one?
Atharva Joshi
Atharva Joshi 2020 年 4 月 6 日
The peak is what I want to extract. I want to hide it so that i get to put a 2 degree Gaussian , in order to subtact it from the remaining plot.

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

採用された回答

Image Analyst
Image Analyst 2020 年 4 月 6 日
See my attached demo for fitting two Gaussians on a slant to noisy data.
It should be very easy for you to adapt it to use only a single Gaussian. Let me know if you can't figure it out.
  3 件のコメント
Atharva Joshi
Atharva Joshi 2020 年 4 月 7 日
I need it like this. The figure I attached in the question is tilted/slant . How do I straighten the left and right ?
After that fitting the gaussian is easy.
Image Analyst
Image Analyst 2020 年 4 月 7 日
The signal is what it is. And it's not a nice symmetrical Gaussian either before or after subtracting the baseline. Why do you want to alter it to something that it is not? If you want a perfectly symmetrical Gaussian instead of your actual data, then just use the fitted red line.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by