Normalize by peak area

3 次查看(过去 30 天)
YI-TING
YI-TING 2014-9-5
回答: Naama 2014-9-12
Hi,
I want to normalized peaks with different shape and area to the same area (ex:1).
Is there any already written program?
Thanks
  1 个评论
Geoff Hayes
Geoff Hayes 2014-9-5
Yi-Ting - please provide an example of what you mean, or add more details to your question.

请先登录,再进行评论。

回答(1 个)

Naama
Naama 2014-9-12
If your data is in vector y, and your desired area is desired_area, then:
y_normalized = desired_area * y./sum(y);

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by