Numerical integration(double integral) by using "dblquad" function.

5 visualizaciones (últimos 30 días)
I want to find the numerical value of double integral function (function is given in attached file). The integrand is multiplication of cumulative distribution of d1 and probability density function of d2. However, the problem is that d2 is present as limit of the inner integral. I used "dblquad" but it shows the problem that d2 is undefined.
If d2 is not present as limit of the integral, then it is solving the the double integral. Keep in mind, we knew only pdf and cdf of d2. Can anyone suggest please that how can I solve my problem. How can we extract the value of d2 from pdf or cdf.
Note: The syntax I used is given in attached file.

Respuesta aceptada

John D'Errico
John D'Errico el 10 de Feb. de 2014
Editada: John D'Errico el 10 de Feb. de 2014
help integral2
See one of the examples, where it shows how to solve your problem.
  2 comentarios
Muhammad
Muhammad el 10 de Feb. de 2014
Dear John
I can't find any example, infact this command is not working in MATLAB. Can you please help me Sir.
John D'Errico
John D'Errico el 10 de Feb. de 2014
Editada: John D'Errico el 10 de Feb. de 2014
I'm pretty confident the command DOES work in MATLAB. Perhaps you have an older release as integral2 was just added somewhat recently. In that case, it would help to tell us what release you do have.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by