how can i solve numerically a vector integral?

6 visualizaciones (últimos 30 días)
Adi
Adi el 15 de En. de 2019
Comentada: Adi el 16 de En. de 2019
I have a plot of gaussian alike profile in matlab.
the plot presents the intensity (I) profile( E^2) as a function of location(radius) r.
i need to calculate the integral of I(r)*r*dr which is the area under the graph, i tried solving with trapz but the answer isnt correct, so how can i calculate this integral when
I(r) is a vector and r is a value i know?plot.PNG
  5 comentarios
Torsten
Torsten el 16 de En. de 2019
As I wrote,
trapz(r_vector,r_vector.*intensity_vector)
if you want to approximate
integral(I(r)*r*dr )
Adi
Adi el 16 de En. de 2019
thank you!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by