Numerical integration: points of integration
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
John D'Errico
am 16 Jan. 2015
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 Kommentare
Mike Hosea
am 19 Jan. 2015
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.
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!