Amplitude adjustment on integral

1 view (last 30 days)
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 Comment
Roger Stafford
Roger Stafford on 4 Mar 2015
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.

Sign in to comment.

Accepted Answer

Andrew Newell
Andrew Newell on 4 Mar 2015
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.

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!