finding numerical integration of vectors
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two vectors and I want the numerical integration of the product of this two vectors from zero to infinity. For example, P=integral(A(u)B(u))du from 0 to infinity. A(u) and B(u) are vectors.
How can I do that? Can I use P=trapz(A(u).*B(u))?
0 Kommentare
Antworten (1)
Torsten
am 6 Mär. 2017
P = trapz(U,AU.*BU);
where AU and BU are the vectors evaluated at U.
Best wishes
Torsten.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!