Solving of multivariable integral

4 ビュー (過去 30 日間)
Oliver Stilz
Oliver Stilz 2020 年 10 月 8 日
回答済み: Ameer Hamza 2020 年 10 月 8 日
Hey,
i am looking for a possibility to numerically solve a function that has to be integrated over 4 variables ranging from 0 to definite values.
regards

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 10 月 8 日
You can call intergal2() twice like shown in this example
f = @(x,y,z,w) x.^2+(y.*z)+w;
% limits:
% x: [0 2]
% y: [0 3]
% z: [5 9]
% w: [1 3]
I1 = @(Z, W) arrayfun(@(z,w) integral2(@(x,y) f(x,y,z,w), 0, 2, 0, 3), Z, W);
integral2(@(z,w) I1(z,w), 5, 9, 1, 3)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by