How do I normalize Area under curve of NIR spectra to 1

How do I normalize Area Under Curve of NIR spectra to 1 using Matlab 2020b please?
Thank You

 채택된 답변

Image Analyst
Image Analyst 2021년 6월 27일
편집: Image Analyst 2021년 6월 27일
Don't you just do
signal = signal / sum(signal);
That's if you're plotting your signal like little bars in a bar chart. If you're computing area like they're little trapezoids, then use
signal = signal / trapz(signal);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

NCA
2021년 6월 27일

편집:

2021년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by