Amplitude adjustment on integral

조회 수: 3 (최근 30일)
PetterS
PetterS 2015년 3월 4일
답변: Andrew Newell 2015년 3월 4일
Hi. I have a lot of electromagnetic spectrums that show the correct distribution (shape of the curve) of wavelengths, but I need to adjust the integrated value so that it matches another measured value that I have.
So in other words, I need to adjust the amplitude (up and down) of the curve where the values are in (W/m²)/nm so that the integral becomes another value that is in W/m² without changing the distribution/shape.
How can this be done? And is there any specific integration method that is extra good and should be used to integrate data that looks like this (quickly jumps up and down etc.)?
Thanks.
  댓글 수: 1
Roger Stafford
Roger Stafford 2015년 3월 4일
It's simple algebra. Multiply the amplitude by a constant equal to the ratio of the desired integral value divided by the integral value you obtained.

댓글을 달려면 로그인하십시오.

채택된 답변

Andrew Newell
Andrew Newell 2015년 3월 4일
Just calculate the integral (see integral), say
q = integral(fun,xmin,xmax);
and then multiply your function by your_value / q. The help page has an example, "Improper Integral of Oscillatory Function", with adjustments that would work just as well for a proper integral.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by