Multidimensional integration in matlab
조회 수: 3 (최근 30일)
이전 댓글 표시
I would like to integrate a multivariate function such as
over . Is there a built in function in matlab to do this? Expanding it to a function of , the components of x will be really tedious if the dimension is higher.
댓글 수: 0
채택된 답변
Bjorn Gustavsson
2021년 4월 13일
Have a look at the help and documentation for integral2. That should be the function to do 2-D integrals, that sounds like the function you're looking for.
HTH
댓글 수: 2
Bjorn Gustavsson
2021년 4월 14일
That is because your function is array-valued, and as far as I know integral2 doesn't handle that. You might have to evaluate the integral for each component separately.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!