|
From: | Scott Kuntze |
Subject: | Re: simulating dynamical systems with arbitrary external inputs using lsode |
Date: | Fri, 22 Jun 2007 23:01:10 -0400 |
User-agent: | Thunderbird 1.5.0.12 (X11/20070604) |
John W. Eaton wrote:
It's not find that is causing trouble, it is that you are using == here. That can only return a value when T is exactly equal to one of the values in your TVALS array, which isn't likely to happen. The function I posted computes values of U between data points using a zero order hold.
Thanks for the help -- silly oversight on my part but your explanation was very helpful.
[Prev in Thread] | Current Thread | [Next in Thread] |