Help on double integral Again

조회 수: 1 (최근 30일)
Natnael Hamda
Natnael Hamda 2012년 3월 6일
I tried to solve an integral problem using Matlab's built-in function dblquad as follows;
R = 0.0067; D = 1.1111; K = 100; dblquad( @(x,y) exp(-R*(y-x))*((((y+D)/(x+D)))^(R*(K+D)+1))*(1/((y+D)*y)), 0, 100, 100, inf)
but I have got the following error messages; LOOKING FOR YOUR HELP; THANK YOU;
??? Error using ==> mldivide
Matrix dimensions must agree.
Error in ==> @(x,y)exp(-R*(y-x))*((((y+D)/(x+D)))^(R*(K+D)+1))*(1/((y+D)*y))
Error in ==> quad at 77
y = f(x, varargin{:});
Error in ==> dblquad>innerintegral at 78
Q(i) = quadf(intfcn, xmin, xmax, tol, trace, y(i), varargin{:});
Error in ==> quad at 77
y = f(x, varargin{:});
Error in ==> dblquad at 54
Q = quadf(@innerintegral, ymin, ymax, tol, trace, intfcn, ...

채택된 답변

Bart
Bart 2012년 3월 6일
try ./ instead of / and .* instead of *
  댓글 수: 1
Natnael Hamda
Natnael Hamda 2012년 3월 6일
Thanks a lot;
It works;

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by