Implementing a numerical integration expression
이전 댓글 표시
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.
답변 (1개)
Roger Stafford
2014년 9월 8일
편집: Roger Stafford
2014년 9월 8일
2 개 추천
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
Wayne
2014년 9월 8일
Roger Stafford
2014년 9월 8일
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
카테고리
도움말 센터 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!