From: Will on 9 Feb 2010 11:13 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 :(
|
Pages: 1 Prev: Video Synchronization in Simulink Next: Numerical integration - Trapz, quad, quadl... |