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