using integral2 on a matrix with function handler components
이전 댓글 표시
Let's say that I have the following function: A = @(x,y) [x,x+y;x-y,y]; and I want to calculate the following integral: Q = integral2(A,0,2,3,5) How can I do this? How can I access and use the function that is defined inside the component i and j of my matrix? I cannot use e_i*A*e_j' because it is still matrix.
P.S. Here I know my function, but in my code I have a product of two different function handler matrix, thus I do not know my function s.t. I know here.
채택된 답변
추가 답변 (1개)
Navid
2014년 4월 25일
0 개 추천
댓글 수: 1
Star Strider
2014년 4월 25일
Nesting two calls to integral works, without having to break the matrix apart into its components.
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!