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.

 Akzeptierte Antwort

Jan
Jan am 10 Mär. 2016

0 Stimmen

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 Kommentar

Snapshot83
Snapshot83 am 10 Mär. 2016
Thank you for your reply. What does it mean sum ? How I should proceed if I have value in x and y coloumns ?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 10 Mär. 2016

Kommentiert:

am 10 Mär. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by