フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How can I generate an integral of some 2-d functions?

1 回表示 (過去 30 日間)
Han
Han 2020 年 5 月 13 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
For example, there is a function for variables, x,y.
The range of x,y are [0,500], respectively.
The function is just random and It is over 0.
How can I generate the integral of the function?
  2 件のコメント
John D'Errico
John D'Errico 2020 年 5 月 13 日
help trapz
help integral2
help int
Anirudh Singh
Anirudh Singh 2020 年 5 月 18 日
You can use function integral2 for 2-d integral here.
Example:
f = @(y, x) x.^2 + x.*sin(y).^2; % suppose this is our function
integral2(f, xmin, xmax, ymin, ymax);
For more detail you can refer the documentation link of function: https://in.mathworks.com/help/matlab/ref/integral2.html

回答 (0 件)

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by