フィルターのクリア

finding numerical integration of vectors

1 回表示 (過去 30 日間)
Moli Wang
Moli Wang 2017 年 3 月 5 日
回答済み: Torsten 2017 年 3 月 6 日
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))?

回答 (1 件)

Torsten
Torsten 2017 年 3 月 6 日
P = trapz(U,AU.*BU);
where AU and BU are the vectors evaluated at U.
Best wishes
Torsten.

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by