Implementing a numerical integration expression
Mostrar comentarios más antiguos
Hi All
I am struggling to implement the following expression in Matlab. The expression seems fairly straight forward, but I just can't get it to run. Any help would be appreciated.

Thanks.
Respuestas (1)
Roger Stafford
el 8 de Sept. de 2014
Editada: Roger Stafford
el 8 de Sept. de 2014
2 votos
Use matlab's 'integral2' function. It provides for inner integration limits to be functions of the outer variable of integration, which is what you have. Your limits, beta*r1 and beta*r2, depend on beta, the outer variable of integration.
2 comentarios
Wayne
el 8 de Sept. de 2014
Roger Stafford
el 8 de Sept. de 2014
My advice was to call on 'integral2', not 'integral'. It is specially designed for double integrals, which is what you are dealing with. Read its documentation carefully before trying to use it:
http://www.mathworks.com/help/matlab/ref/integral2.html
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!