필터 지우기
필터 지우기

How do I plot a double integral ?

조회 수: 21 (최근 30일)
Robin Stöhr
Robin Stöhr 2017년 12월 11일
답변: SRIHARSHA CHINTA 2020년 12월 16일
I need to plot this function. Can anybody help me?
  댓글 수: 2
Torsten
Torsten 2017년 12월 11일
Which function ?
Best wishes
Torsten.
Robin Stöhr
Robin Stöhr 2017년 12월 12일

댓글을 달려면 로그인하십시오.

채택된 답변

Chris Perkins
Chris Perkins 2017년 12월 14일
Hi Robin,
To calculate a definite double integral in MATLAB, you can use the function "integral2", which is described on the following documentation page: https://www.mathworks.com/help/matlab/ref/integral2.html
If you are looking to plot the results of a definite double integral, you can plot the results of "integral2" with various bounds, depending on your specific problem.
Alternatively, depending on what you are looking for, you could use the function "int" from the symbolic math toolbox to calculate an indefinite integral, and then plot that function.
See the documentation for the "int" function for more information: https://www.mathworks.com/help/symbolic/int.html
For general information regarding double integration in MATLAB, see the following blog post: https://blogs.mathworks.com/loren/2014/02/12/double-integration-in-matlab-methods-and-handling-discontinuities-singularities-and-more/
  댓글 수: 1
Robin Stöhr
Robin Stöhr 2017년 12월 18일
That helped a lot thank you Chris.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

SRIHARSHA CHINTA
SRIHARSHA CHINTA 2020년 12월 16일
syms x y z
int(int(x*y,x,1,sqrt(4-y)),y,0,3)
viewSolid(z,0+0*x+0*y,x*y,x,1,sqrt(4-y),y,0,3)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by