필터 지우기
필터 지우기

Numerical integration: points of integration

조회 수: 2 (최근 30일)
Carlos
Carlos 2015년 1월 16일
댓글: John D'Errico 2015년 1월 22일
Hello everybody: I would be interested in knowing which points Matlab gets for numerical integration in 2D space. Is it possible to know after integrations in which points Matlab has evaluated the function to obtain the integration? Thanks. Carlos

답변 (1개)

John D'Errico
John D'Errico 2015년 1월 16일
So store them yourself! Nothing says you cannot do this.
Use a global variable, that accumulates each point your function was passed. Expect it to be slow, since the array will grow dynamically and cannot be preallocated since you do not know the final size. Whats the problem otherwise?
  댓글 수: 2
Mike Hosea
Mike Hosea 2015년 1월 19일
To know the points, that is the way. For speed and probably to tell me what I really need to know, I think I might rather "bin" it, i.e. count the number of evaluations in each rectangle of a pre-defined grid.
John D'Errico
John D'Errico 2015년 1월 22일
Mike - Yes. I agree. It all depends on what is the exact goal.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by