Your right-hand-side is implemented in Matlab, and it needs to be called multiple times per step, so that is generally the limiting factor in the speed for Matlab ODEs.
4 Likes
Your right-hand-side is implemented in Matlab, and it needs to be called multiple times per step, so that is generally the limiting factor in the speed for Matlab ODEs.