Area between baseline and data peak
古いコメントを表示
Hi,
I am trying to determine the area under a peak curve, see image. The baseline illustrated in image is not zero, and I would like to subtract this from the area under the peak. The data is from a picture and been summed to obtain this profile. I want to determine the intensity by summing the area under the peak.

1. Is there a way to determine the baseline (y- value) automatically by code.
2. How do I determine the area minus the baseline? I use sum to determine the area under the peak curve.
採用された回答
その他の回答 (2 件)
Andrew Reibold
2014 年 9 月 22 日
編集済み: Andrew Reibold
2014 年 9 月 22 日
0 投票
The area under a curve is the definition of an integral. You will want to take the integral and subtract the baseline * baseline_width to find the area.
I'm not sure if its really scientific to determine the baseline just from raw data. Maybe this entire unique data set has some factor that shifts every point in some direction which makes you perceive the baseline somewhere that it isn't. I'm sure you could take the mean of non-peaked data or something, but normally the baseline is determined from the original function, historical data, or whatever you are stepping off from.
3 件のコメント
Image Analyst
2014 年 9 月 23 日
Lizan, you could speed along a solution to your problem by just posting your data.
Lizan
2014 年 10 月 21 日
Image Analyst
2014 年 9 月 22 日
0 投票
You can find the peak (at least for this plot) very easily with max(). Then you can just "fall down" the peak on each side (with a for loop) and find the place (index) where the data is no longer decreasing. Then you can just fit a line between those two valley locations, say with polyfit() or whatever, to get the baseline.
2 件のコメント
Lizan
2014 年 10 月 20 日
Image Analyst
2014 年 10 月 20 日
signal(i) will be greater than or equal to signal(i-1).
カテゴリ
ヘルプ センター および File Exchange で Parametric Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
