Normalize by peak area

2 views (last 30 days)
YI-TING
YI-TING on 5 Sep 2014
Answered: Naama on 12 Sep 2014
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 Comment
Geoff Hayes
Geoff Hayes on 5 Sep 2014
Yi-Ting - please provide an example of what you mean, or add more details to your question.

Sign in to comment.

Answers (1)

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

Tags

Products

Community Treasure Hunt

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

Start Hunting!