How to normalize a plot ?

6 ビュー (過去 30 日間)
Snapshot83
Snapshot83 2016 年 3 月 10 日
コメント済み: Snapshot83 2016 年 3 月 10 日
Hi, can anybody help me to understand how to normalize a spectrum ? I have a spectra and I want to obtain its area equal to 1. Thanks in advance.

採用された回答

Jan
Jan 2016 年 3 月 10 日
If you want the area to be 1.0, create the sum over the spectrum and divide the values by the result.
spectrum = rand(1, 100); % Example data
normalized = spectrum / sum(spectrum);
  1 件のコメント
Snapshot83
Snapshot83 2016 年 3 月 10 日
Thank you for your reply. What does it mean sum ? How I should proceed if I have value in x and y coloumns ?

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by