Help on double integral Again

1 visualizzazione (ultimi 30 giorni)
Natnael Hamda
Natnael Hamda il 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, ...

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Author Block Masks in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by