Thread Subject: Using Time Array Data in ODE Functions

Subject: Using Time Array Data in ODE Functions

From: Will

Date: 9 Feb, 2010 16:13:03

Message: 1 of 1

Hi,

I have a function that I pass to ODE45 to solve:

dx = IM_DifferentialEquation(t,x)

but within the function I want to include measured voltage data that is a function of time (time series data). The voltage data is in a 2 column array: column one is time, column 2 is the corresponding voltage value.

What is the simplest way of saying look at voltage array, find time = t, use voltage value corresponding to time t? It must be so simple but I've had a long day and my brain is struggling :(

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
ode45 Will 9 Feb, 2010 11:14:06
time series data Will 9 Feb, 2010 11:14:06
rssFeed for this Thread

Contact us at files@mathworks.com