How to normalize a plot ?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Snapshot83
el 10 de Mzo. de 2016
Comentada: Snapshot83
el 10 de Mzo. de 2016
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.
0 comentarios
Respuesta aceptada
Jan
el 10 de Mzo. de 2016
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);
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!