PDA

View Full Version : retrieving data less than a certain value using ode45


twisted3829
Oct5-11, 09:33 AM
I'm trying to get a series of data using ode45 but I want to keep the data between -1 and 1. I have ode45 calling the function for certain x values with an initial condition.

I know I could go into individual outputs and find where it is greater than 1 or less than 1 but I was wondering if there is an easier way to do this for all 44 data outputs. The number of points changes for each data set. Some sets would be 50 points some would be 500.

Thank you in advance