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 Kommentar

Geoff Hayes
Geoff Hayes am 5 Sep. 2014
Yi-Ting - please provide an example of what you mean, or add more details to your question.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Naama
Naama am 12 Sep. 2014

0 Stimmen

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

Produkte

Tags

Gefragt:

am 5 Sep. 2014

Beantwortet:

am 12 Sep. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by