Help on double integral Again

1 view (last 30 days)
Natnael Hamda
Natnael Hamda on 6 Mar 2012
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, ...

Accepted Answer

Bart
Bart on 6 Mar 2012
try ./ instead of / and .* instead of *

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!