How to double integral in MATLAB

조회 수: 3 (최근 30일)
kun zhou
kun zhou 2016년 10월 7일
댓글: Walter Roberson 2016년 10월 7일
I want double integrate the following
a = 0.3555;
b = 0.3985;
n = 2.343;
f = @(x,y)(1-abs(x/(a*(1-abs(y/b).^n).^(1/n))).^1.745);
integral2(f,-0.3555,0.3985,-0.3555,0.3985)
but it did not work, anybody can help me on this? thanks
  댓글 수: 2
Torsten
Torsten 2016년 10월 7일
편집: Walter Roberson 2016년 10월 7일
Use
f = @(x,y)(1-abs(x./(a*(1-abs(y/b).^n).^(1/n))).^1.745);
If this does not work either, please include the complete error message.
Best wishes
Torsten.
Walter Roberson
Walter Roberson 2016년 10월 7일
The denominator of that is 0 at y = +/- b, which is going to lead to difficulties in integrating. The integral would perhaps be well-defined theoretically if you could well-define what it meant to raise a value to a floating point number.

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

답변 (1개)

Pritesh Shah
Pritesh Shah 2016년 10월 7일
Try dblquad function

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by